Part Number Hot Search : 
ZD36V MC68HC1 SNA511 1N5270B 11152 BP082 HF3508A 25025
Product Description
Full Text Search
 

To Download UPD78361ACW-XXX Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  mos integrated circuit m pd78361a, 78362a 16/8-bit single-chip microcontroller description m pd78362a is provided with a high-speed, high-performance cpu and powerful operation functions. unlike the existing m pd78328, m pd78362a is also provided with a high-resolution pwm signal output function which substantially contributes to improving the performance of the inverter control. a prom model, m pd78p364a, is also available. detailed functions, etc. are described in the following user's manual. be sure to read the manual to design systems. m pd78362a user's manual hardware : u10745e m pd78356 users manual instruction : u12117e features internal 16-bit architecture, external 8-bit data bus high-speed processing by pipeline control method and high- speed operating clock minimum instruction execution time: 125 ns (internal clock: at 16 mhz, external clock: 8mhz) real-time pulse unit for inverter control 10-bit resolution a/d converter: 8 channels 8-/9-/10-/12-bit resolution variable pwm signal output function: 2 channels powerful serial interface: 2 channels internal memory : rom 32k bytes ( m pd78361a) 24k bytes ( m pd78362a) ram 2k bytes ( m pd78361a) 768 bytes ( m pd78362a) application examples inverter air conditioner factory automation fields, such as industrial robots and machine tools. ordering information part number package internal rom m pd78361acw- 64-pin plastic shrink dip (750 mil) mask rom m pd78362acw- 64-pin plastic shrink dip (750 mil) mask rom remark indicates a rom code suffix. unless otherwise specified, the m pd78362a is treated as the representative model throughout this document. the mark shows major revised points. document no. u10098ej2v0ds00 (2nd edition) date published august 1997 n printed in japan 1996 data sheet the information in this document is subject to change without notice.
2 m pd78361a, 78362a 78k/iii series product development high-speed, multi-function, reinforced interrupt, 10-bit a/d (for control application in oa and fa fields) high-performance cpu, sum-of-products instruction added reinforced timer and a/d, expanded rom and ram pulse output function for inverter control (for hdd) (for control application in oa and fa fields) (for control application in oa and fa fields) (for inverter) a/d, d/a relative instruction added, expanded rom, ram pulse output function for inverter control, expanded rom, ram reinforced timer, a/d added (for control unit of automotive appliances) (for inverter) (for camera, hdd) pd78372 subseries pd78356 subseries pd78334 subseries pd78328 subseries pd78352a subseries pd78322 subseries pd78312a subseries m m m m m m m m m m m m m pd78366a subseries m pd78361a pd78362a pd78p364a pd78363a pd78365a pd78366a pd78368a pd78p368a m m
3 m pd78361a, 78362a pin configuration (top view) ? 64-pin plastic shrink dip (750 mil) m pd78361acw- , 78362acw- remark indicates a rom code suffix. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 p57 p90 p91 p92 p80/to00 p81/to01 p82/to02 p83/to03 p84/to04 p85/to05 v ss p00/rtp0 p01/rtp1 p02/rtp2 p03/rtp3 v dd v ss x1 x2 reset p04/pwm0 p05/pwm1/tcud p06/to40/tiud p07/tclrud p30/txd p31/rxd p32/so/sb0 p33/si/sb1 p34/sck mode p20/nmi p21/intp0 p56 p55 p54 p53 p52 p51 p50 p47 p46 p45 p44 p43 p42 p41 p40 v ss v dd av dd av ref p77/ani7 p76/ani6 p75/ani5 p74/ani4 p73/ani3 p72/ani2 p71/ani1 p70/ani0 av ss p25/intp4 p24/intp3/ti p23/intp2 p22/intp1
4 m pd78361a, 78362a p00-p07 : port0 p20-p25 : port2 p30-p34 : port3 p40-p47 : port4 p50-p57 : port5 p70-p77 : port7 p80-p85 : port8 p90-p92 : port9 rtp0-rtp3 : real-time port nmi : nonmaskable interrupt intp0-intp4 : interrupt from peripherals to00-to05, to40 : timer output ti : timer input tiud : timer input up down counter tcud : timer control up down counter tclrud : timer clear up down counter ani0-ani7 : analog input t x d : transmit data r x d : receive data si : serial input so : serial output sb0, sb1 : serial bus sck : serial clock pwm0, pwm1 : pulse width modulation output mode : mode reset : reset x1, x2 : crystal av dd : analog v dd av ss : analog v ss av ref : analog reference voltage v dd : power supply v ss : ground
5 m pd78361a, 78362a 125 ns (internal clock: 16 mhz, external clock: 8 mhz) 32k bytes 24k bytes 2k bytes 768 bytes 64k bytes 8 bits 16 8 banks 115 ? 16-bit transfer/operation ? multiplication/division (16 bits 16 bits, 32 bits ? 16 bits) ? bit manipulation ? string ? sum-of-products operation (16 bits 16 bits + 32 bits) ? relative operation 14 (of which 8 are shared with analog input) 38 ? 16-bit timer 1 10-bit dead time timer 3 16-bit compare register 4 2 kinds of output mode can be selected mode 0, set-reset output: 6 channels mode 1, buffer output: 6 channels ? 16-bit timer 1 16-bit compare register 1 ? 16-bit timer 1 16-bit capture register 1 16-bit capture/compare register 1 ? 16-bit timer 1 16-bit capture register 2 16-bit capture/compare register 1 ? 16-bit timer 1 16-bit compare register 2 16-bit resolution pwm output: 1 channel pulse outputs associated with real-time pulse unit: 4 lines 8-/9-/10-/12-bit resolution variable pwm output: 2 channels 10-bit resolution, 8 channels dedicated baud rate generator uart: 1 channel clocked serial interface/sbi: 1 channel ? external: 6, internal: 14 (of which 2 are multiplexed with external) ? 4 priority levels can be specified through software ? 3 types of interrupt service modes selectable (vectored interrupt, macro service, and context switching) 64-pin plastic shrink dip (750 mil) ? watchdog timer ? standby function (halt and stop modes) ? pll control circuit functional outline minimum instruction execution time internal memory rom ram memory space general-purpose registers number of basic instructions instruction set i/o lines input i/o real-time pulse unit real-time output port pwm unit a/d converter serial interface interrupt function package others m pd78361a item m pd78362a
6 m pd78361a, 78362a differences between m pd78362a and m pd78366a rom internal rom ram input i/o lines i/o serial interface external expansion function rom-less mode mode setting package product name item 24k bytes 32k bytes 786 bytes 2k bytes 14 (of which 8 are multiplexed with analog input) 38 dedicated baud rate generator uart: 1 channel clocked serial interface/sbi: 1 channel none none always set as follows: mode = l 64-pin plastic shrink dip (750 mil) 49 dedicated baud rate generator uart (with pin selection function): 1 channel clocked serial interface/sbi: 1 channel provided provided ? in ordinary operation mode: mode0, 1 = ll ? in rom-less mode: mode0, 1 = hh 80-pin plastic qfp (14 20 mm) m pd78362a m pd78366a
7 m pd78361a, 78362a block diagram p0 p2 p3 p4 p5 p6 p7 p8 8 6 5 8 8 8 6 3 v dd v ss pwm av dd av ss av ref intp2 ani to ti tiud tclrud tcud sck so/sb0 si/b1 rxd txd rtp nmi intp 5 5 4 4 2 3 2 exu rom/ram bcu x1 x2 reset mode programmable interrupt controller timer/counter unit (real-time pulse unit) serial interface (sbi) (uart) real-time output port general registers 128 8 & data memory 128 8 main ram micro sequence control micro rom a/d converter rwm watchdog timer port alu rom 24k 8 32k 8 & peripheral ram 512 8 1792 8 system control & bus control & prefetch control 8 7 remark internal rom and ram capacities differ depending on the product.
8 m pd78361a, 78362a table of contents 1. pin functions ...................................................................................................................... 10 1.1 port pins ..................................................................................................................................... 10 1.2 pins other than port pins .................................................................................................. 11 1.3 pin i/o circuits and processing of unused pins ....................................................... 12 2. cpu architecture ............................................................................................................. 14 2.1 memory space ........................................................................................................................... 14 2.2 data memory addressing .................................................................................................... 16 2.3 processor registers ........................................................................................................... 18 2.3.1 control registers ................................................................................................................. 18 2.3.2 general-purpose registers .................................................................................................. 19 2.3.3 special function registers (sfr) ........................................................................................20 3. functional blocks ........................................................................................................... 26 3.1 execution unit (exu) ............................................................................................................... 26 3.2 bus control unit (bcu) ......................................................................................................... 26 3.3 rom/ram ....................................................................................................................................... 26 3.4 port functions ........................................................................................................................ 26 3.5 clock generator circuit ................................................................................................... 28 3.6 real-time pulse unit (rpu) .................................................................................................. 30 3.7 real-time output port (rtp) .............................................................................................. 37 3.8 a/d converter .......................................................................................................................... 38 3.9 serial interface ..................................................................................................................... 39 3.10 pwm unit ...................................................................................................................................... 41 3.11 watchdog timer (wdt) .......................................................................................................... 42 4. interrupt functions ....................................................................................................... 43 4.1 outline ......................................................................................................................................... 43 4.2 macro service .......................................................................................................................... 44 4.3 context switching ................................................................................................................. 47 4.3.1 context switching function by interrupt request ................................................................ 47 4.3.2 context switching function by brkcs instruction .............................................................. 48 4.3.3 restoration from context switching ..................................................................................... 48 5. standby functions ...................................................................................................................... 49 6. reset function ................................................................................................................... 50 7. instruction set .................................................................................................................. 51 8. example of system configuration ........................................................................... 65 9. electrical specifications ............................................................................................ 66 10. package drawing .............................................................................................................. 75
9 m pd78361a, 78362a 11. recommended soldering conditions ...................................................................... 76 appendix a. differences between m pd78362a and m pd78328 .................................. 77 appendix b. tools .................................................................................................................... 78 b.1 development tools ............................................................................................................... 78 b.2 embedded software .............................................................................................................. 83
10 m pd78361a, 78362a port 0. 8-bit i/o port. can be set in input or output mode in 1-bit units. port 2. 6-bit input port. port 3. 5-bit i/o port. can be set in input or output mode in 1-bit units. port 4. 8-bit i/o port. can be set in input or output mode in 8-bit units. port 5. 8-bit i/o port. can be set in input or output mode in 1-bit units. port 7. 8-bit input port port 8. 6-bit i/o port. can be set in input or output mode in 1-bit units. port 9. 3-bit i/o port. can be set in input or output mode in 1-bit units. p00-p03 p04 p05 p06 p07 p20 p21 p22 p23 p24 p25 p30 p31 p32 p33 p34 p40-p47 p50-p57 p70-p77 p80-p85 p90-p92 rtp0-rtp3 pwm0 tcud/pwm1 tiud/to40 tclrud nmi intp0 intp1 intp2 intp3/ti intp4 t x d r x d so/sb0 si/sb1 sck C C ani0-ani7 to00-to05 C 1. pin functions 1.1 port pins i/o input i/o i/o i/o input i/o i/o pin name i/o function shared by:
11 m pd78361a, 78362a p00-p03 p20 p21 p22 p23 p24/ti p25 p24/intp3 p05/pwm1 p06/to40 p07 p80-p85 p06/tiud p70-p77 p30 p31 p34 p33/sb1 p32/sb0 p32/so p33/si p04 p05/tcud real-time output port that outputs pulses in synchronization with trigger signal from real-time pulse unit. non-maskable interrupt request input. external interrupt request input. external count clock input to timer 1. count operation selection control signal input to up/down counter (timer 4). external count clock input to up/down counter (timer 4). clear signal input to up/down counter (timer 4). pulse output from real-time pulse unit. analog input to a/d converter. serial data output of asynchronous serial interface. serial data input of asynchronous serial interface. serial clock input/output of clocked serial interface. serial data input of clocked serial interface in 3-line mode. serial data output of clocked serial interface in 3-line mode. serial data input/output of clocked serial interface in sbi mode. pwm signal output. output input input output input output input i/o input ouput i/o output rtp0-rtp3 nmi intp0 intp1 intp2 intp3 intp4 ti tcud tiud tclrud to00-to05 to40 ani0-ani7 t x d r x d sck si so sb0 sb1 pwm0 pwm1 1.2 pins other than port pins pin name i/o function shared by: mode reset x1 x2 av ref av dd av ss v dd v ss input input input C input C C C C control signal input to set operation mode. connected to v ss . system reset input crystal oscillator connecting pins for system clock. if a clock is externally supplied, input it to pin x1. leave pin x2 open. a/d converter reference voltage input. a/d converter analog power supply. a/d converter gnd. positive power supply gnd C C C C C C C C
12 m pd78361a, 78362a input : i ndependently connect to v dd or v ss through resistor output : open connect to v ss input : i ndependently connect to v dd or v ss through resistor output : open connect to v ss input : independently connect to v dd or v ss through resistor output : open C connect to v ss connect to v dd 1.3 pin i/o circuits and processing of unused pins table 1-1 shows the i/o circuit types of the respective pins, and recommended connections of the unused pins. figure 1-1 shows the circuits of the respective pins. table 1-1. pin i/o circuit type and recommended connections of unused pins pin i/o circuit type recommended connections p00/rtp0-p03/rtp3 p04/pwm0 p05/tcud/pwm1 p06/tiud/to40 p07/tclrud p20/nmi p21/intp0 p22/intp1 p23/intp2 p24/intp3/ti p25/intp4 p30/t x d p31/r x d p32/so/sb0 p33/si/sb1 p34/sck p40-p47 p50-p57 p70/ani0-p77/ani7 p80/to00-p85/to05 p90-p92 mode reset av ref , av ss av dd 5-a 2 2-a 5-a 8-a 5-a 9 5-a 1 2 C
13 m pd78361a, 78362a figure 1-1. pin i/o circuits type 1 type 5-a type 2 type 8-a type 2-a schmitt trigger input with hysteresis characteristics type 9 schmitt trigger input with hysteresis characteristics v dd p-ch n-ch in in v dd p-ch in pull-up enable pull-up enable data output disable input enable v dd p-ch in/out v dd p-ch n-ch v dd p-ch in/out v dd p-ch n-ch pull-up enable data output disable p-ch n-ch in + ? v ref input enable comparator (threshold voltage)
14 m pd78361a, 78362a 2. cpu architecture 2.1 memory space the m pd78362a can access a memory space of 64k bytes. figure 2-1 and 2-2 show the memory map. figure 2-1. memory map ( m pd78361a) caution for word access (including stack operations) to the main ram area (fe00h-feffh), the address that specifies the operand must be an even value. memory space (64 k 8) data memory program memory data memory feffh ffffh ff00h fdffh ff00h f6ffh f700h 0000h special function register (sfr) (256 8) main ram (256 8) cannot be used internal rom (32768 8) feffh fe80h fe25h fe06h f700h 7fffh 1000h 0fffh 0800h 07ffh 0080h 007fh 0040h 003fh 0000h program area program area callt instruction table area (64 8) vector table area (64 8) general-purpose register (128 8) mode = l macro service control (32 8) data area (768 8) 7fffh 8000h callf instruction entry area (2048 8) peripheral ram (1792 8)
15 m pd78361a, 78362a figure 2-2. memory map ( m pd78362a) caution for word access (including stack operations) to the main ram area (fe00h-feffh), the address that specifies the operand must be an even value. memory space (64 k 8) data memory feffh ffffh ff00h fdffh ff00h fbffh fc00h 0000h special function register (sfr) (256 8) main ram (256 8) cannot be used internal rom (24576 8) feffh fe80h fe25h fe06h fc00h 5fffh 1000h 0fffh 0800h 07ffh 0080h 007fh 0040h 003fh 0000h program area program area callt instruction table area (64 8) vector table area (64 8) general-purpose register (128 8) mode = l macro service control (32 8) data area (768 8) 5fffh 6000h callf instruction entry area (2048 8) peripheral ram (512 8) program memory data memory
16 m pd78361a, 78362a 2.2 data memory addressing the m pd78362a is provided with many addressing modes that improve the operability of the memory and can be used with high-level languages. especially, an area of addresses fc00h-ffffh (f700h-ffffh in the m pd78361a) to which the data memory is mapped can be addressed in a mode peculiar to the functions provided in this area, including special function registers (sfr) and general-purpose registers. figure 2-3. data memory addressing ( m pd78361a) caution for word access (including stack oprations) to the main ram area (fe00h-feffh), the address that specifies the operand must be an even value. ff20h ff1fh fe20h fe1fh f700h f6ffh ff00h feffh fe80h fe7fh fe00h fdffh 8000h 7fffh 0000h special function register (sfr) general-purpose register main ram peripheral ram internal rom cannot be used sfr addressing register addressing short direct addressing direct addressing register indirect addressing based addressing based indexed addressing based indexed addressing (with displacement) ffffh
17 m pd78361a, 78362a figure 2-4. data memory addressing ( m pd78362a) caution for word access (including stack oprations) to the main ram area (fe00h-feffh), the address that specifies the operand must be an even value. ff20h ff1fh fe20h fe1fh fc00h fbffh ff00h feffh fe80h fe7fh fe00h fdffh 6000h 5fffh 0000h special function register (sfr) general-purpose register main ram peripheral ram internal rom cannot be used sfr addressing register addressing short direct addressing direct addressing register indirect addressing based addressing based indexed addressing based indexed addressing (with displacement) ffffh
18 m pd78361a, 78362a 2.3 processor registers the m pd78362a is provided with the following three types of processor registers: ? control registers ? general-purpose registers ? special function registers (sfrs) 2.3.1 control registers (1) program counter (pc) this is a 16-bit register that holds an address of the instruction to be executed next. (2) program status word (psw) this 16-bit register indicates the status of the cpu as a result of instruction execution. (3) stack pointer (sp) this 16-bit register indicates the first address of the stack area (lifo) of the memory. figure 2-5. configuration of control registers pc psw sp 15 0 figure 2-6. configuration of psw psw uf rbs2 rbs1 rbs0 0 0 0 0 15 8 s z rss ac ie p/v 0 cy 7 0 uf : user flag rbs0-rbs2: register bank select flag s : sign flag (msb of execution result) z : zero flag rss : register set select flag ac : auxiliary carry flag ie : interrupt request enable flag p/v : parity/overflow flag cy : carry flag
19 m pd78361a, 78362a 2.3.2 general-purpose registers the m pd78362a is provided with eight banks of general-purpose registers with one bank consisting of 8 words 16 bits. figure 2-7 shows the configuration of the general-purpose register banks. the general-purpose registers are mapped to an area of addresses fe80h-feffh. each of these registers can be used as an 8- bit register. in addition, two registers can be used as one 16-bit register pair (refer to figure 2-8 ). these general-purpose registers facilitate complicated multitask processing. figure 2-8. processing bits of general-purpose registers figure 2-7. configuration of general-purpose register banks 15 0 rp0 rp1 rp2 rp3 rp4 rp5 rp6 rp7 bank 7 bank 1 bank 0 rbnk0 rbnk1 rbnk2 rbnk3 rbnk4 rbnk5 rbnk7 rbnk6 r15 r13 r11 r9 r7 r5 r3 r1 r14 r12 r10 r8 r6 r4 r2 r0 rp7 rp6 rp5 rp4 rp3 rp2 rp1 rp0 (fh) (dh) (bh) (9h) (7h) (5h) (3h) (1h) (eh) (ch) (ah) (8h) (6h) (4h) (2h) (0h) feffh fe80h 8-bit processing 16-bit processing 7 07 0 15 0
20 m pd78361a, 78362a 2.3.3 special function registers (sfr) special function registers (sfrs) are registers assigned special functions such as mode registers and control registers for internal peripheral hardware, and are mapped to a 256-byte address space at ff00h through ffffh. table 2-1 lists the sfrs. the meanings of the symbols in this table are as follows: symbol ................................... indicates the mnemonic symbol for an sfr. this mnemonic can be coded in the operand field of an instruction. r/w ........................................ indicates whether the sfr can be read or written. r/w : read/write r : read only w : write only bit units for manipulation ...... indicates bit units in which the sfr can be manipulated. the sfrs that can be manipulated in 16-bit units can be coded as an sfrp operand. specify an even address for these sfrs. the sfrs that can be manipulated in 1-bit units can be coded as the operand of bit manipulation instructions. on reset ................................. indicates the status of the register at reset input. cautions 1. do not access the addresses in the range ff00h-ffffh to which no special function register is allocated. if these addresses are accessed, malfunctio ning may occur. 2. do not write data to the read-only registers. otherwise, the internal circuit may not operate normally. 3. when using read data as byte data, process undefined bit(s) first. 4. tout and txs are write-only registers. do no read these registers. 5. bits 0, 1, and 4 of sbic are write-only bits. when these bits are read, they are always "0".
21 m pd78361a, 78362a table 2-1. list of special function registers (1/5) bit units for manipulation 1 bit 8 bits 16 bits on reset address special function register (sfr) symbol r/w ff00h ff02h ff03h ff04h ff05h ff07h ff08h ff09h ff10h ff11h ff12h ff13h ff14h ff15h ff16h ff17h ff18h ff19h ff1ah ff1bh ff1ch ff1dh ff1eh ff1fh ff20h ff23h ff25h ff28h ff29h ff2ch ff2dh ff2eh ff2fh ff30h ff31h ff32h ff33h port 0 port 2 port 3 port 4 port 5 port 7 port 8 port 9 compare register 00 compare register 01 compare register 02 compare register 03 buffer register cm00 buffer register cm01 buffer register cm02 timer register 0 port 0 mode register port 3 mode register port 5 mode register port 8 mode register port 9 mode register reload register timer unit mode register 0 timer unit mode register 1 compare register 10 timer register 1 r/w r r/w r r/w r r/w r/w r C CC C C C CC C C CC CC CC CC CC CC CC CC C C C C C CC C C CC CC 0000h ffh 1 1111b ffh 11 1111b 111b undefined 00h undefined 0000h p0 p2 p3 p4 p5 p7 p8 p9 cm00 cm01 cm02 cm03 bfcm00 bfcm01 bfcm02 tm0 pm0 pm3 pm5 pm8 pm9 dtime tum0 tum1 cm10 tm1 undefined
22 m pd78361a, 78362a table 2-1. list of special function registers (2/5) bit units for manipulation 1 bit 8 bits 16 bits on reset address special function register (sfr) symbol r/w ff34h ff35h ff36h ff37h ff38h ff39h ff3ah ff3bh ff3ch ff3dh ff40h ff43h ff44h ff45h ff48h ff4eh ff4fh ff50h ff51h ff52h ff53h ff54h ff55h ff56h ff57h ff58h ff59h ff5ah ff5bh ff5ch ff5dh ff5eh ff5fh ff60h ff61h ff62h ff68h capture/compare register 20 capture register 20 timer register 2 buffer register cm03 external interrupt mode register 0 external interrupt mode register 1 port 0 mode control register port 3 mode control register pull-up resistor option register l pull-up resistor option register h port 8 mode control register sampling control register 0 sampling control register 1 capture/compare register 30 capture register 30 capture register 31 timer register 3 compare register 40 compare register 41 timer register 4 timer control register 4 timer out register real-time output port register real-time output port mode register port read control register a/d converter mode register cc20 ct20 tm2 bfcm03 intm0 intm1 pmc0 pmc3 puol puoh pmc8 smpc0 smpc1 cc30 ct30 ct31 tm3 cm40 cm41 tm4 tmc4 tout rtp rtpm prdc adm CC CC CC CC C C C C C C C C C CC CC CC CC CC CC CC CC CC C C C C r/w r r/w r r/w r r/w w r/w undefined 0000h underfined 00h 0 0000b 00h 00 0000b 00h undefined 0000h undefined 0000h 00h 01 0101b undefined 00h
23 m pd78361a, 78362a table 2-1. list of special function registers (3/5) bit units for manipulation 1 bit 8 bits 16 bits on reset address special function register (sfr) symbol r/w ff70h ff71h ff72h ff73h ff74h ff75h ff76h ff77h ff78h ff79h ff7ah ff7bh ff7ch ff7dh ff7eh ff7fh ff80h ff82h ff84h ff85h ff86h ff88h ff8ah ff8ch ff8eh ffa0h ffa1h ffa2h ffa2h ffa3h slave buffer register 0 slave buffer register 1 slave buffer register 2 slave buffer register 3 slave buffer register 4 slave buffer register 5 master buffer register 0 master buffer register 1 master buffer register 2 master buffer register 3 master buffer register 4 master buffer register 5 timer control register 0 timer control register 1 timer control register 2 timer control register 3 clocked serial interface mode register serial bus interface control register baud rate generator control register baud rate generator compare register serial i/o shift register asynchronous serial interface mode register asynchronous serial interface status register serial receive buffer: uart serial transfer shift register: uart pwm control register 0 pwm control register 1 pwm register 0l pwm register 0 sbuf0 sbuf1 sbuf2 sbuf3 sbuf4 sbuf5 mbuf0 mbuf1 mbuf2 mbuf3 mbuf4 mbuf5 tmc0 tmc1 tmc2 tmc3 csim sbic brgc brg sio asim asis rxb txs pwmc0 pwmc1 pwm0l pwm0 C C C C C C C C C C C C C C C C C C C CC C C CC CC CC C C C CC undefined 00h undefined 80h 00h undefined 00h undefined note bits 7 and 5 : read/write bits 6, 3, and 2 : read-only bits 4, 1, and 0 : write-only r/w r/w note r/w r w r/w
24 m pd78361a, 78362a table 2-1. list of special function registers (4/5) bit units for manipulation 1 bit 8 bits 16 bits on reset address special function register (sfr) symbol r/w C CC C C C CC C CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC pwm1l pwm1 ispr imc mk0l mk0 mk0h adcr0 adcr0h adcr1 adcr1h adcr2 adcr2h adcr3 adcr3h adcr4 adcr4h adcr5 adcr5h adcr6 adcr6h adcr7 adcr7h stbc note wdm note r/w r r/w r r/w undefined 00h 80h ffh ffffh ffh undefined 0000 000b 00h ffa4h ffa4h ffa5h ffa8h ffaah ffach ffach ffadh ffadh ffb0h ffb1h ffb1h ffb2h ffb3h ffb3h ffb4h ffb5h ffb5h ffb6h ffb7h ffb7h ffb8h ffb9h ffb9h ffbah ffbbh ffbbh ffbch ffbdh ffbdh ffbeh ffbfh ffbfh ffc0h ffc2h pwm register 1l pwm register 1 in-service priority register interrupt mode control register interrupt mask register 0l interrupt mask register 0 interrupt mask register 0h a/d conversion result register 0 a/d conversion result register 0h a/d conversion result register 1 a/d conversion result register 1h a/d conversion result register 2 a/d conversion result register 2h a/d conversion result register 3 a/d conversion result register 3h a/d conversion result register 4 a/d conversion result register 4h a/d conversion result register 5 a/d conversion result register 5h a/d conversion result register 6 a/d conversion result register 6h a/d conversion result register 7 a/d conversion result register 7h standby control register watchdog timer mode register note can be written when a special instruction is executed.
25 m pd78361a, 78362a table 2-1. list of special function registers (5/5) bit units for manipulation 1 bit 8 bits 16 bits on reset address special function register (sfr) symbol r/w note c0aah 43h memory expansion mode register programmable wait control register interrupt control register (intov3) interrupt control register (intp0/intcc30) interrupt control register (intp1) interrupt control register (intp2) interrupt control register (intp3/intcc20) interrupt control register (intp4) interrupt control register (inttm0) interrupt control register (intcm03) interrupt control register (intcm10) interrupt control register (intcm40) interrupt control register (intcm41) interrupt control register (intser) interrupt control register (intsr) interrupt control register (intst) interrupt control register (intcsi) interrupt control register (intad) ffc4h ffc6h ffc7h ffe0h ffe1h ffe2h ffe3h ffe4h ffe5h ffe6h ffe7h ffe8h ffe9h ffeah ffebh ffech ffedh ffeeh ffefh mm pwc ovic3 pic0 pic1 pic2 pic3 pic4 tmic0 cmic03 cmic10 cmic40 cmic41 seric sric stic csiic adic r/w C CC C C C C C C C C C C C C C C C C note the value of the mm register on reset differs depending on the product. m pd78361a 20h m pd78362a 60h
26 m pd78361a, 78362a 3. functional blocks 3.1 execution unit (exu) exu controls address computation, arithmetic and logical operations, and data transfer through microprogram. exu has an internal main ram. this ram can be accessed by instructions faster than the peripheral ram. 3.2 bus control unit (bcu) bcu starts necessary bus cycles according to the physical address obtained by the execution unit (exu).if exu does not request start of the bus cycle, an address is generated to prefetch an instruction. the prefetched op code is stored in an instruction queue. 3.3 rom/ram internal rom and ram capacities differ depending on the product. the m pd78361a has a 32k-byte rom and a 1792-byte peripheral ram. the m pd78362a has a 24k-byte rom and a 512-byte peripheral ram. 3.4 port functions the m pd78362a is provided with the ports shown in figure 3-1 for various control operations. the functions of each port are listed in table 3-1. these ports function not only as digital ports but also as input/output lines of the internal hardware. figure 3-1. port configuration p00 p07 p20 p25 p30 p34 8 8 p50 p57 p70-p77 p80 p85 p90 p92 p40-p47 port 0 port 2 port 3 port 4 port 5 port 8 port 7 port 9
27 m pd78361a, 78362a table 3-1. functions of each port 8-bit i/o port. can be set in input or output mode in 1-bit units. 6-bit input port. 5-bit i/o port. can be set in input or output in 1-bit units. 8-bit i/o port. can be set in input or output mode in 8-bit units. 8-bit i/o port. can be set in input or output mode in 1-bit units. 8-bit input port. 6-bit i/o port. can be set in input or output mode in 1-bit units. 3-bit i/o port. can be set in input or output mode in 1-bit units. in control mode, serves as real-time output port (rtp), or input operation control signal of real-time pulse unit (rpu) and output pwm signal. inputs external interrupt and count pulse of real-time pulse unit (rpu) (fixed to the control mode). in control mode, inputs/outputs signals of serial interfaces (uart, csi). input analog signals to a/d converter (fixed to the control mode). in control mode, outputs timer of real-time pulse unit (rpu). port port function multiplexed function port 0 port 2 port 3 port 4 port 5 port 7 port 8 port 9
28 m pd78361a, 78362a 3.5 clock generator circuit the clock generator circuit generates and controls the internal system clock (clk) that is supplied to the cpu. figure 3-2. block diagram of clock generator circuit remarks 1. f xx : crystal oscillation frequency 2. f x : external clock frequency 3. f clk : internal system clock frequency by connecting an 8-mhz crystal resonator across the x1 and x2 pins, an internal system clock of up to 16 mhz (f clk ) can be generated. the system clock oscillation circuit oscillates by using the crystal resonator connected across the x1 and x2 pins. it stops oscillation in standby mode. an external clock can also be input. to do so, input the clock signal to the x1 pin and leave the x2 pin open. caution do not set stop mode when the external clock is used. x1 x2 f xx or f x f clk 1/2 system cloock oscillator circuit internal system clock (clk) stop mode frequency divider 1/2 pll control circuit frequency divider
29 m pd78361a, 78362a cautions 1. wire the portion enclosed by dotted line in figure 3-3 as follows to avoid adverse influences due to wiring capacity when using the system clock oscillation circuit. ? keep the wiring length as short as possible. ? do not cross the wiring with the other signal line. make sure that the wiring is not close to lines through which a high alternating current flows. ? always keep the ground point of the capacitor of the oscillation circuit at the same potential as v ss . do not ground the circuit to a ground pattern through which a high current flows. ? do not extract signals from the oscillator circuit. 2. to input an external clock, do not connect a load such as wiring capacitance to the x2 pin. figure 3-3. external circuit of system clock oscillator circuit (a) crystal oscillator (b) external clock pd78362a m v ss x1 x2 pd78362a m x1 x2 open
30 m pd78361a, 78362a 3.6 real-time pulse unit (rpu) the real-time pulse unit (rpu) can measure pulse intervals and frequencies, and output programmable pulses (six channels of pwm control signals). the rpu consists of five 16-bit timers (timers 0 through 4), of which one is provided with a 10-bit dead time timer, which is ideal for inverter control. in addition, a function to turn off the output by the software or an external interrupt is also provided. each timer has the following features: ? timer 0 : controls the pwm period of the to00 through to05 pins. in addition, operates as a general-purpose interval timer. timer 0 has the following five operation modes: general-purpose interval timer mode pwm mode 0 (symmetrical triangular wave) pwm mode 0 (asymmetrical triangular wave) pwm mode 0 (saw-tooth wave) pwm mode 1 ? timer 1 : operates as a general-purpose interval timer. ? timers 2 & 3 : has a programmable input sampling circuit that rejects the noise of an input signal, and a capture function. ? timer 4 : operates as a general-purpose timer or an up-down counter. when operating as a general- purpose timer, controls the pwm cycle of the to40 output pin. timer 4 has the following two operation modes: general-purpose timer mode up/down counter mode (udc mode) the rpu consists of the hardware shown in table 3-2. figures 3-4 through 3-12 show the block diagrams of the respective timers. table 3-2. configuration of real-time pulse unit (rpu) 16-bit compare register (cm00) C 16-bit compare register (cm01) C 16-bit compare register (cm02) C 16-bit compare register (cm03) intcm03 16-bit compare register (cm10) intcm10 16-bit capture/compare register (cc20) intcc20 16-bit capture register (ct20) C 16-bit capture/compare register (cc30) intcc30 16-bit capture register (ct30) C 16-bit capture register (ct31) C 16-bit compare register (cm40) intcm40 16-bit compare register (cm41) intcm41 timer 0 16-bit timer (tm0) timer 1 16-bit timer (tm1) timer 2 16-bit timer (tm2) timer 3 16-bit timer (tm3) timer 4 16-bit timer (tm4) compare register coincidence interrupt capture trigger timer output timer clear C 6 intcm03 C C intcm10 intp3 C intcc20 intp0 intp1 C intcc30 intp4 tclrud intcm40 C1 timer register register
31 m pd78361a, 78362a figure 3-4. block diagram of timer 0 (pwm mode 0 ... symmetrical triangular wave, asymmetrical triangular wave) tm0 : timer register alvt0 : bit 2 of tum0 register cm00-cm03 : compare registers u/d n : bit 3 of tmc0 register bfcm00-bfcm03: buffer registers dtime : reload register dtm0-dtm2 : dead time timers remark f clk : internal system clock bfcm03 cm03 tm0 bfcm00 cm00 r s dtm0 r s to00 (u phase) underflow r s to01 (u phase) bfcm01 cm01 r s dtm1 r s to02 (v phase) underflow r s to03 (v phase) bfcm02 cm02 r s dtm2 r s to04 (w phase) underflow r s to05 (w phase) intcm03 inttm0 16 16 f clk f clk /2 f clk /4 f clk /8 f clk /16 u/d up = 0 down = 1 dtime f clk 10 alvto output off function by external interrupt and software
32 m pd78361a, 78362a figure 3-5. block diagram of timer 0 (pwm mode 0 ... saw-tooth wave) tm0 : timer register cm00-cm03 : compare registers bfcm00-bfcm03: buffer registers dtime : reload register dtm0-dtm2 : dead time timers alvt0 : bit 2 of tum0 register remark f clk : internal system clock bfcm03 cm03 tm0 bfcm00 cm00 r s dtm0 r s to00 (u phase) underflow r s to01 (u phase) bfcm01 cm01 r s dtm1 r s to02 (v phase) underflow r s to03 (v phase) bfcm02 cm02 r s dtm2 r s to04 (w phase) underflow r s to05 (w phase) intcm03 16 16 f clk f clk /2 f clk /4 f clk /8 f clk /16 dtime f clk 10 alvto output off function by external interrupt and software clear
33 m pd78361a, 78362a figure 3-6. block diagram of timer 0 (pwm mode 1) tm0 : timer register mbuf0-mbuf5 : master buffer registers cm00-cm03 : compare registers sbuf0-sbuf5 : slave buffer registers bfcm00-bfcm03: buffer registers tout : timer out register dtime : reload register dtm0-dtm2 : dead time timers remark f clk : internal system clock mbuf1 mbuf0 mbuf3 mbuf2 mbuf5 mbuf4 bfcm03 cm03 tm0 bfcm00 cm00 bfcm01 cm01 bfcm02 cm02 intcm03 16 16 f clk f clk /2 f clk /4 f clk /8 f clk /16 clear dtm0 dtime t dtm1 t dtm2 t 10 f clk underflow underflow underflow sbuf1 sbuf0 sbuf3 sbuf2 sbuf5 sbuf4 6-bit buffer register 6-bit buffer register 6-bit write-only register tout output off function by external interrupt and software to00 (u phase) to02 (v phase) to04 (w phase) to01 (u phase) to03 (v phase) to05 (w phase)
34 m pd78361a, 78362a figure 3-7. block diagram of timer 0 (general-purpose interval timer mode) figure 3-8. block diagram of timer 1 remark f clk : internal system clock compare register cm03 timer register tm0 16 master buffer register (mbuf0) slave buffer register (sbuf0) timer out register (tout) 6 6 intcm03 clear output off function by external interrupt and software to00 to02 to04 to01 to03 to05 f clk /4 f clk /8 f clk /16 ti intcm10 clear 16 timer register tm1 compare register cm10
35 m pd78361a, 78362a figure 3-9. block diagram of timer 2 remark f clk : internal system clock figure 3-10. block diagram of timer 3 remark f clk : internal system clock 4-point sampling noise rejection circuit timer register tm2 capture/compare register cc20 capture register ct20 16 f clk /2 2 f clk /2 3 f clk /2 4 f clk /2 5 f clk /2 6 f clk /2 8 f clk /2 9 f clk /2 10 f clk f clk /2 2 f clk /2 3 f clk /2 4 f clk /2 6 f clk /2 7 f clk /2 8 clr2 intp3/intcc20 intp3 clear 4-point sampling noise rejection circuit timer register tm3 capture/compare register cc30 16 f clk /2 2 f clk /2 3 f clk /2 4 f clk /2 5 f clk /2 6 f clk /2 8 f clk f clk /2 2 f clk /2 3 f clk /2 4 clr3 intp0/intcc30 intp0 4-point sampling noise rejection circuit capture register ct30 f clk f clk /2 2 f clk /2 3 f clk /2 4 intp1 intp1 4-point sampling noise rejection circuit f clk f clk /2 2 f clk /2 3 f clk /2 4 intp4 intp4 intov3 clear capture register ct31
36 m pd78361a, 78362a figure 3-11. block diagram of timer 4 (general-purpose timer mode) remark f clk : internal system clock figure 3-12. block diagram of timer 4 (udc mode) remark f clk : internal system clock f clk f clk /2 f clk /4 f clk /8 f clk /16 f clk /32 timer register tm4 compare register cm40 compare register cm41 clear intcm40 q s 16 r intcm41 alv40 to40 f clk /4 f clk /8 f clk /16 timer register tm4 intcm40 tclrud compare register cm40 compare register cm41 up/down detector tiud clear 16 intcm41 tcud ovf udf
37 m pd78361a, 78362a 3.7 real-time output port (rtp) the real-time output port is a 4-bit port that can output the contents of the real-time output port register (rtp) in synchronization with the trigger signal from the real-time pulse unit (rpu). it can output synchronization pulses of multiple channels. also, pwm modulation can be applied to p00-p03. figure 3-13. block diagram of real-time output port 4 4 rtp p03 p02 p01p00 pwm0 pwm1 internal bus intcm03 (from rpu) intcm10 (from rpu) intp0/intcc30 (from rpu) software trigger output trigger control circuit rtpm pwm signal control circuit output latch (p03-p00)
38 m pd78361a, 78362a 3.8 a/d converter the m pd78362a contains a high-speed, high-resolution 10-bit analog-to-digital (a/d) converter (conversion time 12.6 m s at an internal clock frequency of 16 mhz). successive approximation type is adopted. this converter is provided with eight analog input lines (ani0-ani7) and can perform various operations as the application requires, in select, scan, and mixed modes. when a/d conversion ends, an internal interrupt (intad) occurs. this interrupt can start a macro service that executes automatic data transfer through hardware. figure 3-14. block diagram of a/d converter adcr0 adcr1 adcr2 adcr3 adcr4 adcr5 adcr6 adcr7 adm (8) 10 8 9 90 0 10 10 ani0 ani1 ani2 ani3 ani4 ani5 ani6 ani7 intcm03 intp2 av dd av ref av ss sar (10) input curcuit sample & hold resistor string comparator controller (start trigger) internal bus
39 m pd78361a, 78362a 3.9 serial interface the m pd78362a is provided with the following two independent serial interfaces: ? asynchronous serial interface (uart) ? clocked serial interface ? 3-line serial i/o mode ? serial bus interface mode (sbi mode) since the m pd78362a contains a baud rate generator (brg), any serial transfer rate can be set regardless of the operating clock frequency. the baud rate generator is a block to generate the shift clock for the transmit/ receive serial interface, and is used commonly with the two channels of the serial interfaces. the serial transfer rate can be selected in a range of 110 bps to 38.4 kbps by the mode register. figure 3-15. block diagram of asynchronous serial interface r x d t x d rxb pe fe ove rxe ps1 ps0 cl sl sck asim txs asis intsr intser intst 1 16 1 16 f clk /8 internal bus receive buffer receive shift register receive control parity check transfer shift register transfer control parity append transfer/ receive baud rate generator output selector
40 m pd78361a, 78362a figure 3-16. block diagram of clocked serial interface figure 3-17. block diagram of baud rate generator ctxe si/sb1 so/sb0 mod1 mod2 mod1 sck mod1 mod2 wup intcsi 1/2 cls0 cls1 cmdt relt sbic mod1 mod2 wup crxe mod0 cls1 cls0 bsye cmdd ackt acke ackd reld cmdt relt 8 8 8 0 7 d q internal bus shift register (sio) so latch busy/ acknow- ledge detector circuit bus release/ command/ acknowledge detector circuit serial clock counter interrupt signal generation control circuit serial clock control circuit baud rate generator (brg) selector selector selector csim f clk /32 f clk /8 70 70 brg brgc f clk /2 tmbrg 1 2 clear serial interface internal bus coincidence prescaler
41 m pd78361a, 78362a 3.10 pwm unit the m pd78362a is provided with two lines that output 8-/9-/10-/12-bit resolution variable pwm signals. the pwm output can be used as a digital-to-analog conversion output by connecting an external lowpass filter, and ideal for controlling actuators such as motors. an output of between 244 hz and 62.5 khz can be obtaind, depending on the combination of the count clock (62.5 ns to 1 m s) and counter bit length (8, 9, 10, or 12) (at an internal clock frequency of 16 mhz). figure 3-18. block diagram of pwm unit remark n = 0, 1 7 8 9 11 0-7 0-8 0-9 0-11 counter (12) f clk /16 f clk /8 f clk /4 f clk /2 f clk overflow s r q alvn pwmn comparator (12) compare register cmpn (12) pwm buffer register n (12) coinci- dence
42 m pd78361a, 78362a 3.11 watchdog timer (wdt) the watchdog timer is a free running timer equipped with a non-maskable interrupt function to prevent program hang-up or deadlock. an error of the program can be seen by the occurrence of the overflow interrupt (intwdt) of the watchdog timer. figure 3-19. block diagram of watchdog timer f clk /2 13 f clk /2 11 f clk /2 9 wdt clr wdt stop clear overflow intwdt watchdog timer (8 bits) oscillation stabilization time control circuit
43 m pd78361a, 78362a 4. interrupt functions 4.1 outline the m pd78362a is provided with powerful interrupt functions that can service interrupt requests from the internal hardware peripherals and external sources. in addition, the following three interrupt service modes are available. in addition, four levels of interrupt priority can be specified. ? vectored interrupt service ? macro service ? context switching table 4-1. interrupt sources note C C 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 C C C C interrupt source name trigger nmi nmi pin input intwdt watchdog timer intov3 overflow of timer 3 intp0/intcc30 intp0 pin input/cc30 coincidence signal intp1 intp1 pin input intp2 intp2 pin input intp3/intcc20 intp3 pin input/cc20 coincidence signal intp4 intp4 pin input inttm0 underflow of timer 0 intcm03 cm03 coincidence signal intcm10 cm10 coincidence signal intcm40 cm40 coincidence signal intcm41 cm41 coincidence signal intser receive error of uart intsr end of uart reception intst end of uart transfer intcsi end of csi transfer/reception intad end of a/d conversion brk brk instruction brkcs brkcs instruction trap illegal op code trap reset reset input source unit external wdt rpu external/rpu external external/rpu external rpu uart csi a/d C C C C vector table address 0002h 0004h 0006h 0008h 000ah 000ch 000eh 0010h 0012h 0014h 0016h 0018h 001ah 001ch 001eh 0020h 0022h 0024h 003eh C 003ch 0000h macro service none provided none context switching none provided none provided none type non- maskable maskable software exception reset note default priority : priority that takes precedence when two or more maskable interrupts occur at the same time. 0 is the highest priority, and 15 is the lowest.
44 m pd78361a, 78362a 4.2 macro service the m pd78362a has a total of five macro services. each macro service is described below. (1) counter mode: evtcnt ? operation (a) increments or decrements an 8-bit macro service counter (msc). (b) a vectored interrupt request is generated when msc reaches 0. ? application example: as event counter, or to measure number of times a value is captured (2) block transfer mode: blktrs ? operation (a) transfers data block between a buffer and a sfr specified by sfr pointer (sfrp). (b) the transfer source and destination can be in sfr or buffer area. the length of the transfer data can be specified to be byte or word. (c) the number of times the data is to be transferred (block size) is specified by msc. (d) msc is auto decremented by one each time the macro service has been executed. (e) when msc reaches 0, a vectored interrupt request is generated. ? application example: to transfer/receive data through serial interface msc +1/? ? sfrp msc sfr buffer n buffer 1 internal bus
45 m pd78361a, 78362a (3) block transfer mode (with memory pointer): blktrs-p ? operation this is the block transfer mode in (2) above with a memory pointer (memp). the appended buffer area of memp can be freely set on the memory space. remark each time the macro service is executed, memp is auto incremented (by one for byte data transfer and by two for word data transfer). ? application example: same as (2) (4) data differential mode: dtadif ? operation (a) calculates the difference between the contents of sfr (current value) specified by sfrp and the contents of sfr saved to the last data buffer (ldb). (b) stores the result of the calculation in a predetermined buffer area. (c) stores the contents of the current value of the sfr in ldb. (d) the number of times the data is to be transferred (block size) is specified by msc. each time the macro service is executed, msc is auto decremented by one. (e) when msc reaches 0, a vector interrupt request is generated. remark the differential calculation can be carried out only with 16-bit sfrs. ? application example : to measure cycle and pulse width by the capture register of the real-time pulse unit (rpu) ? sfr ldb buffer n buffer 1 differential calculation internal bus sfrp msc ? sfrp msc sfr memp +1/+2 buffer n buffer 1 internal bus
46 m pd78361a, 78362a (5) data differential mode (with memory pointer): dtadif-p ? operation this is the data differential mode in (4) above with memory pointer (memp). by appending memp, the buffer area in which the differential data is to be stored can be set freely on the memory space. remarks 1. the differential calculation can be carried out only with 16-bit sfrs. 2. the buffer is specified by the result of operation by memp and msc note . memp is not updated after the data has been transferred. note memp C (msc 2) + 2 ? application example: same as (4) ? sfr memp ldb sfrp msc buffer n buffer 1 differential calculation internal bus
47 m pd78361a, 78362a 4.3 context switching this function is to select a specific register bank through the hardware, and to branch execution to a vector address predetermined in the register bank. at the same time, it saves the present contents of the pc and psw to the register bank when an interrupt occurs, or when the brkcs instruction is executed. 4.3.1 context switching function by interrupt request when a context switching enable flag corresponding to each maskable interrupt request is set to 1 in the ei (interrupt enable) status, the context switching function can be started. the context switching operation by an interrupt request is performed as follows: (1) when an interrupt request is generated, a register bank to which the context is to be switched is specified by the contents of the lower 3 bits of the row address (even address) of the corresponding vector table. (2) a predetermined vector address is transferred to the pc in the register bank to which the context is to be switched, and the contents of the pc and psw immediately before the switching takes place are saved to the register bank. (3) execution branches to an address indicated by the contents of the pc newly set. figure 4-1. operation of context switching pc psw rp0 rp1 rp2 rp3 rp4 rp5 rp6 rp7 registor bank registor bank (0-7) exchange save
48 m pd78361a, 78362a 4.3.2 context switching function by brkcs instruction the context switching function can be started by the brkcs instruction. the operation of context switching by an interrupt request is as follows: (1) an 8-bit register is specified by the operand of the brkcs instruction, and the register bank to which the context is to be switched is specified by the contents of this register (only the lower 3 bits of 8 bits are valid). (2) the vector address predetermined in the register bank to which the context is to be switched is transferred to the pc, and at the same time, the contents of the pc and psw immediately before the switching takes place are saved to the register bank. (3) execution branches to the contents of the pc newly set. 4.3.3 restoration from context switching to restore from the switched context, one of the following two instructions are used. which instruction is to be executed is determined by the source that has started the context switching. table 4-2. instructions to restore from context switching restore instruction context switching starting source retcs occurrence of interrupt retcsb execution of brkcs instruction
49 m pd78361a, 78362a 5. standby functions the m pd78362a is provided with standby functions to reduce the power consumption of the system. the standby functions can be effected in the following two modes: ? halt mode ..... in this mode, the operating clock of the cpu is stopped. by using this mode in combination with an ordinary operation mode, the m pd78362a operates intermittently to reduce the total power consumption of the system. ? stop mode .... in this mode, the oscillator is stopped, and therefore the entire system is stopped. therefore, power consumption can be minimized with only a leakage current flowing. each mode is set through software. figure 5-1 shows the transition of the status in the standby modes (stop and halt modes). figure 5-1. transition of standby status stop halt ordinary stop set reset released nmi halt set reset released unmasked interrupt occurs
50 m pd78361a, 78362a 6. reset function when a low level is input to the reset pin, the system is reset, and each hardware enters the initial status (reset status). when the reset pin goes high, the reset status is released, and program execution is started. initialize the contents of each register through program as necessary. especially, change the number of cycles of the programmable wait control register as necessary. the reset pin is equipped with a noise rejecter circuit of analog delay to prevent malfunctioning due to noise. caution while the reset pin is active (low level), all the pins go into a high-impedance state (except av ref , av dd , av ss , v dd , v ss , x1, and x2 pins). figure 6-1. accepting reset signal to effect reset on when power is applied, make sure that sufficient time elapses to stabilize the oscillation after the power is applied until the reset signal is accepted, as shown in figure 6-2. figure 6-2. reset on power application reset input analog delay analog delay analog delay rejected as noise reset accepted reset released v dd reset oscillation stabilization time analog delay reset released
51 m pd78361a, 78362a 7. instruction set describe an operand in the operand field of each instruction according to the description method of the instruction (for details, refer to the assembler specifications). some instructions have two or more operands. select one of them. uppercase characters, +, C, #, $, !, [, and ] are keywords and must be described as is. describe an appropriate numeric value or label as immediate data. to describe a label, be sure to describe #, $, !, [, or ]. table 7-1. operand representation and description description r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15 r0, r1, r2, r3, r4, r5, r6, r7 c, b rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7 rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7 de, hl, vp, up special function register symbol (refer to table 2-1 .) special function register symbol (register that can be manipulated in 16-bit units. refer to table 2-1 .) rp0, rp1, rp2, rp3, rp4, rp5/psw, rp6, rp7 (more than one symbol can be described. however, rp5 can be described only for push and pop instructions, and psw can be described only for pushu and popu instructions.) [de], [hl], [de +], [hl +], [de C], [hl C], [vp], [up] ; register indirect mode [de + a], [hl + a], [de + b], [hl + b], [vp + de], [vp + hl] ; based indexed mode [de + byte], [hl + byte], [vp + byte], [up + byte], [sp + byte] ; based mode word[a], word[b], word[de], word[hl] ; indexed mode fe20h-ff1fh immediate data or label fe20h-ff1eh immediate data (however, bit0 = 0) or label (manipulated in 16-bit units) 0000h-fdffh immediate data or label; relative addressing 0000h-fdffh immediate data or label; immediate addressing (however, up to ffffh can be described for mov instruction. only fe00h-feffh can be described for movtblw instruction.) 800h-fffh immediate data or label 40h-7eh immediate data (however, bit0 = 0) note or label 16-bit immediate data or label 8-bit immediate data or label 3-bit immediate data or label 3-bit immediate data (0-7) representation r r1 r2 rp rp1 rp2 sfr sfrp post mem saddr saddrp $ addr16 ! addr16 addr11 addr5 word byte bit n note do not access bit0 = 1 (odd address) in word units. remarks 1. rp and rp1 are the same in terms of register name that can be described but are different in code to be generated. 2. r, r1, rp, rp1, and post can be described in absolute name (r0-r15, rp0-rp7) and function name (x, a, c, b, e, d, l, h, ax, bc, de, hl, vp, and up). 3. immediate addressing can address the entire space. relative addressing can address only a range of C128 to +127 from the first address of the next instruction.
52 m pd78361a, 78362a mnemonic operand byte operation flag s z ac p/v cy mov xch instructions 8-bit data transfer r1, #byte 2 saddr, #byte 3 sfr note , #byte 3 r, r1 2 a, r1 1 a, saddr 2 saddr, a 2 saddr, saddr 3 a, sfr 2 sfr, a 2 a, mem 1-4 mem, a 1-4 a, [saddrp] 2 [saddrp], a 2 a, !addr16 4 !addri16, a 4 pswl, #byte 3 pswh, #byte 3 pswl, a 2 pswh, a 2 a, pswl 2 a, pswh 2 a, r1 1 r, r1 2 a, mem 2-4 a, saddr 2 a, sfr 3 a, [saddrp] 2 saddr, saddr 3 r1 ? byte (saddr) ? byte sfr ? byte r ? r1 a ? r1 a ? (saddr) (saddr) ? a (saddr) ? (saddr) a ? sfr sfr ? a a ? (mem) (mem) ? a a ? ((saddrp)) ((saddrp)) ? a a ? (addr16) (addr16) ? a psw l ? byte psw h ? byte psw l ? a psw h ? a a ? psw l a ? psw h a ? r1 r ? r1 a ? (mem) a ? (saddr) a ? sfr a ? ((saddrp)) (saddr) ? (saddr) xxxxx xxxxx note when stbc or wdm is described as sfr, this instruction is treated as a dedicated instruction whose number of bytes is different from that of this instruction. remark for symbols in flag, refer to the table below. symbol remarks (blank) no change 0 cleared to 0 1 set to 1 x set/cleared according to result p p/v flag functions as parity flag v p/v flag operates as overflow flag r value previously saved is restored
53 m pd78361a, 78362a flag s z ac p/v cy mnemonic operand byte operation instructions 16-bit data transfer 8-bit operation rp1, #word 3 saddrp, #word 4 sfrp, #word 4 rp, rp1 2 ax, saddrp 2 saddrp, ax 2 saddrp, saddrp 3 ax, sfrp 2 sfrp, ax 2 rp1, !addr16 4 !addr16, rp1 4 ax, mem 2-4 mem, ax 2-4 ax, saddrp 2 ax, sfrp 3 saddrp, saddrp 3 rp, rp1 2 ax, mem 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 rp1 ? word (saddrp) ? word sfrp ? word rp ? rp1 ax ? (saddrp) (saddrp) ? ax (saddrp) ? (saddrp) ax ? sfrp sfrp ? ax rp1 ? (addr16) (addr16) ? rp1 ax ? (mem) (mem) ? ax ax ? (saddrp) ax ? sfrp (saddrp) ? (saddrp) rp ? rp1 ax ? (mem) a, cy ? a + byte (saddr), cy ? (saddr) + byte sfr, cy ? sfr + byte r, cy ? r + r1 a, cy ? a + (saddr) a, cy ? a + sfr (saddr), cy ? (saddr) + (saddr) a, cy ? a + (mem) (mem), cy ? (mem) + a a, cy ? a + byte + cy (saddr), cy ? (saddr) + byte + cy sfr, cy ? sfr + byte + cy r, cy ? r + r1 + cy a, cy ? a + (saddr) + cy a, cy ? a + sfr + cy (saddr), cy ? (saddr) + (saddr) + cy a, cy ? a + (mem) + cy (mem), cy ? (mem) + a + cy xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx movw xchw add addc
54 m pd78361a, 78362a flag s z ac p/v cy a, cy ? a C byte (saddr), cy ? (saddr) C byte sfr, cy ? sfr C byte r, cy ? r C r1 a, cy ? a C (saddr) a, cy ? a C sfr (saddr), cy ? (saddr) C (saddr) a, cy ? a C (mem) (mem), cy ? (mem) C a a, cy ? a C byte C cy (saddr), cy ? (saddr) C byte C cy sfr, cy ? sfr C byte C cy r, cy ? r C r1 C cy a, cy ? a C (saddr) C cy a, cy ? a C sfr C cy (saddr), cy ? (saddr) C (saddr) C cy a, cy ? a C (mem) C cy (mem), cy ? (mem) C a C cy a ? a byte (saddr) ? (saddr) byte sfr ? sfr byte r ? r r1 a ? a (saddr) a ? a sfr (saddr) ? (saddr) (saddr) a ? a (mem) (mem) ? (mem) a xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xx p xx p xx p xx p xx p xx p xx p xx p xx p mnemonic operand byte operation instructions sub subc and 8-bit operation a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4
55 m pd78361a, 78362a flag s z ac p/v cy a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a, #byte 2 saddr, #byte 3 sfr, #byte 4 r, r1 2 a, saddr 2 a, sfr 3 saddr, saddr 3 a, mem 2-4 mem, a 2-4 a ? a byte (saddr) ? (saddr) byte sfr ? sfr byte r, ? r r1 a ? a (saddr) a ? a sfr (saddr) ? (saddr) (saddr) a ? a (mem) (mem) ? (mem) a a ? a byte (saddr) ? (saddr) byte sfr ? sfr byte r ? r r1 a ? a (saddr) a ? a sfr (saddr) ? (saddr) (saddr) a ? a (mem) (mem) ? (mem) a a C byte (saddr) C byte sfr C byte r C r1 a C (saddr) a C sfr (saddr) C (saddr) a C (mem) (mem) C a xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xx p xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx mnemonic operand byte operation instructions or xor cmp 8-bit operation
56 m pd78361a, 78362a flag s z ac p/v cy mnemonic operand byte operation instructions multiplication /division relative operation signed multipli- cation sum-of- products operation sum-of-products operation with saturation addw subw cmpw mulu divuw muluw divux mulw macw macsw sacw ax, #word 3 saddrp, #word 4 sfrp, #word 5 rp, rp1 2 ax, saddrp 2 ax, sfrp 3 saddrp, saddrp 3 ax, #word 3 saddrp, #word 4 sfrp, #word 5 rp, rp1 2 ax, saddrp 2 ax, sfrp 3 saddrp, saddrp 3 ax, #word 3 saddrp, #word 4 sfrp, #word 5 rp, rp1 2 ax, saddrp 2 ax, sfrp 3 saddrp, saddrp 3 r1 2 r1 2 rp1 2 rp1 2 rp1 2 n3 n3 [de + ], [hl + ] 4 ax, cy ? ax + word (saddrp), cy ? (saddrp) + word sfrp, cy ? sfrp + word rp, cy ? rp + rp1 ax, cy ? ax + (saddrp) ax, cy ? ax + sfrp (saddrp), cy ? (saddrp) + (saddrp) ax, cy ? ax C word (saddrp), cy ? (saddrp) C word sfrp, cy ? sfrp C word rp, cy ? rp C rp1 ax, cy ? ax C (saddrp) ax, cy ? ax C sfrp (saddrp), cy ? (saddrp) C (saddrp) ax C word (saddrp) C word sfrp C word rp C rp1 ax C (saddrp) ax C sfrp (saddrp) C (saddrp) ax ? ax r1 ax (quotient), r1 (remainder) ? ax ? r1 ax (higher 16 bits), rp1 (lower 16 bits) ? ax rp1 axde (quotient), rp1 (remainder) ? axde ? rp1 ax (higher 16 bits), rp1 (lower 16 bits) ? ax rp1 axde ? (b) (c) + axde b ? b + 2, c ? c + 2, n ? n C 1 end if n = 0 or p/v = 1 axde ? (b) (c) + axde b ? b + 2, c ? c + 2, n ? n C 1 if overflow (p/v = 1) then axde ? 7fffffffh if underflow (p/v = 1) then axde ? 80000000h end if n = 0 or p/v = 1 ax ? ax + | (de) C (hl) | de ? de + 2 hl ? hl + 2 c ? c C 1 end if c = 0 or cy = 1 xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx 16-bit operation
57 m pd78361a, 78362a r1 1 saddr 2 r1 1 saddr 2 rp2 1 saddrp 3 rp2 1 saddrp 3 r1, n 2 r1, n 2 r1, n 2 r1, n 2 r1, n 2 r1, n 2 rp1, n 2 rp1, n 2 [rp1] 2 [rp1] 2 2 1 flag s z ac p/v cy mnemonic operand byte operation instructions movtblw inc dec incw decw ror rol rorc rolc shr shl shrw shlw ror4 rol4 adjba adjbs cvtbw (addr16 + 2) ? (addr16), n ? n-1 addr16 ? addr16-2, end if n = 0 r1 ? r1 + 1 (saddr) ? (saddr) + 1 r1 ? r1 C 1 (saddr) ? (saddr) C 1 rp2 ? rp2 + 1 (saddrp) ? (saddrp) + 1 rp2 ? rp2 C 1 (saddrp) ? (saddrp) C 1 (cy, r1 7 ? r1 0 , r1 m C 1 ? r1 m ) n times (cy, r1 0 ? r1 7 , r1 m + 1 ? r1 m ) n times (cy ? r1 0 , r1 7 ? cy, r1 mC1 ? r1 m ) n times (cy ? r1 7 , r1 0 ? cy, r1 m + 1 ? r1 m ) n times (cy ? r1 0 , r1 7 ? 0, r1 m C 1 ? r1 m ) n times (cy ? r1 7 , r1 0 ? 0, r1 m + 1 ? r1 m ) n times (cy ? rp1 0 , rp1 15 ? 0, rp1 m C 1 ? rp1 m ) n times (cy ? rp1 15 , rp1 0 ? 0, rp1 m+ 1 ? rp1 m ) n times a 3 C 0 ? (rp1) 3 C 0 , (rp1) 7 C 4 ? a 3 C 0 , (rp1) 3 C 0 ? (rp1) 7 C 4 a 3 C 0 ? (rp1) 7 C 4 , (rp1) 3 C 0 ? a 3 C 0 , (rp1) 7 C 4 ? (rp1) 3 C 0 decimal adjust accumelator when a 7 = 0, x ? a, a ? 00h when a 7 = 1, x ? a, a ? ffh table shift xxxv xxxv xxxv xxxv px px px px xx0px xx0px xx0px xx0px xxxpx increment/decrement bcd adjustment data conversion shift rotate !addr16, n 4 remarks 1. n of the shift rotate instruction indicates the number of times the shift rotate instruction is executed. 2. the address of the table shift instruction ranges from fe00h to feffh.
58 m pd78361a, 78362a mnemonic operand byte operation flag s z ac p/v cy instructions cy, saddr.bit 3 cy, sfr.bit 3 cy, a.bit 2 cy, x.bit 2 cy, pswh.bit 2 cy, pswl.bit 2 saddr.bit, cy 3 sfr.bit, cy 3 a.bit, cy 2 x.bit, cy 2 pswh.bit, cy 2 pswl.bit, cy 2 cy, saddr.bit 3 cy, /saddr.bit 3 cy, sfr.bit 3 cy, /sfr.bit 3 cy, a.bit 2 cy, /a.bit 2 cy, x.bit 2 cy, /x.bit 2 cy, pswh.bit 2 cy, /pswh.bit 2 cy, pswl.bit 2 cy, /pswl.bit 2 cy, saddr.bit 3 cy, /saddr.bit 3 cy, sfr.bit 3 cy, /sfr.bit 3 cy, a.bit 2 cy, /a.bit 2 cy, x.bit 2 cy, /x.bit 2 cy, pswh.bit 2 cy, /pswh.bit 2 cy, pswl.bit 2 cy, /pswl.bit 2 cy ? (saddr.bit) cy ? sfr.bit cy ? a.bit cy ? x.bit cy ? psw h .bit cy ? psw l .bit (saddr.bit) ? cy sfr.bit ? cy a.bit ? cy x.bit ? cy psw h .bit ? cy psw l .bit ? cy cy ? cy (saddr.bit) cy ? cy (saddr.bit) cy ? cy sfr.bit cy ? cy sfr.bit cy ? cy a.bit cy ? cy a.bit cy ? cy x.bit cy ? cy x.bit cy ? cy psw h .bit cy ? cy psw h .bit cy ? cy psw l .bit cy ? cy psw l .bit cy ? cy (saddr.bit) cy ? cy (saddr.bit) cy ? cy sfr.bit cy ? cy sfr.bit cy ? cy a.bit cy ? cy a.bit cy ? cy x.bit cy ? cy x.bit cy ? cy psw h .bit cy ? cy psw h .bit cy ? cy psw l .bit cy ? cy psw l .bit mov1 and1 or1 bit manipulation x x x x x x xxxx x x x x x x x x x x x x x x x x x x x x x x x x
59 m pd78361a, 78362a mnemonic operand byte operation flag s z ac p/v cy instructions cy, saddr.bit 3 cy, sfr.bit 3 cy, a.bit 2 cy, x.bit 2 cy, pswh.bit 2 cy, pswl.bit 2 saddr.bit 2 sfr.bit 3 a.bit 2 x.bit 2 pswh.bit 2 pswl.bit 2 saddr.bit 2 sfr.bit 3 a.bit 2 x.bit 2 pswh.bit 2 pswl.bit 2 saddr.bit 3 sfr.bit 3 a.bit 2 x.bit 2 pswh.bit 2 pswl.bit 2 cy 1 cy 1 cy 1 cy ? cy (saddr.bit) cy ? cy sfr.bit cy ? cy a.bit cy ? cy x.bit cy ? cy psw h .bit cy ? cy psw l .bit (saddr.bit) ? 1 sfr.bit ? 1 a.bit ? 1 x.bit ? 1 psw h .bit ? 1 psw l .bit ? 1 (saddr.bit) ? 0 sfr.bit ? 0 a.bit ? 0 x.bit ? 0 psw h .bit ? 0 psw l .bit ? 0 (saddr.bit) ? (saddr.bit) sfr.bit ? sfr.bit a.bit ? a.bit x.bit ? x.bit psw h .bit ? psw h .bit psw l .bit ? psw l .bit cy ? 1 cy ? 0 cy ? cy x x x x x x xxxxx xxxxx xxxxx 1 0 x xor1 set1 clr1 not1 set1 clr1 not1 bit manipulation
60 m pd78361a, 78362a mnemonic operand byte operation flag s z ac p/v cy instructions (sp C 1) ? (pc + 3) h , (sp C 2) ? (pc + 3) l , pc ? addr16, sp ? sp C 2 (sp C 1) ? (pc + 2) h , (sp C 2) ? (pc + 2) l , pc 15 C 11 ? 00001, pc 10 C 0 ? addr11, sp ? sp C 2 (sp C 1) ? (pc + 1) h , (sp C 2) ? (pc + 1) l , pc h ? (tpf, 00000000, addr5 + 1), pc l ? (tpf, 00000000, addr5 ), sp ? sp C 2 (sp C 1) ? (pc + 2) h , (sp C 2) ? (pc + 2) l , pc h ? rp1 h , pc l ? rp1 l , sp ? sp C 2 (sp C 1) ? (pc + 2) h , (sp C 2) ? (pc + 2) l , pc h ? (rp1 + 1), pc l ? (rp1), sp ? sp C 2 (sp C 1) ? psw h , (sp C 2) ? psw l (sp C 3) ? (pc + 1) h , (sp C 4) ? (pc + 1) l , pc l ? (003eh), pc h ? (003fh), sp ? sp C 4, ie ? 0 pc l ? (sp), pc h ? (sp + 1), sp ? sp + 2 pc l ? (sp), pc h ? (sp +1) psw l ? (sp + 2), psw h ? (sp + 3) sp ? sp + 4 pc l ? (sp), pc h ? (sp + 1) psw l ? (sp + 2), psw h ? (sp + 3) sp ? sp + 4 (sp C 1) ? sfr h (sp C 2) ? sfr l sp ? sp C 2 {(sp C 1) ? post h , (sp C 2) ? post l , sp ? sp C 2} n times (sp C 1) ? psw h , (sp C 2) ? psw l , sp ? sp C 2 {(up C 1) ? post h , (up C 2) ? post l , up ? up C 2} n times sfr l ? (sp) sfr h ? (sp + 1) sp ? sp + 2 {post l ? (sp), post h ? (sp + 1), sp ? sp + 2} n times psw l ? (sp), psw h ? (sp + 1), sp ? sp + 2 {post l ? (up), post h ? (up + 1), up ? up + 2} n times sp ? word sp ? ax ax ? sp sp ? sp + 1 sp ? sp C 1 stack manipulation call/return !addr16 3 !addr11 2 [addr5] 1 rp1 2 [rp1] 2 1 1 1 1 sfrp 3 post 2 psw 1 post 2 sfrp 3 post 2 psw 1 post 2 sp, #word 4 sp, ax 2 ax, sp 2 sp 2 sp 2 rrrrr rrrrr rrrrr call callf callt call brk ret retb reti push pushu pop popu movw incw decw remark n of the stack manipulation instruction is the number of registers described as post.
61 m pd78361a, 78362a (pin level) (signal level before output buffer) a ? (pin level) (signal level before output buffer) pc ? addr16 pc h ? rp1 h , pc l ? rp1 l pc h ? (rp1 + 1), pc l ? (rp1) pc ? pc + 2 + jdisp8 pc ? pc + 2 + jdisp8 if cy = 1 pc ? pc + 2 + jdisp8 if cy = 0 pc ? pc + 2 + jdisp8 if z = 1 pc ? pc + 2 + jdisp8 if z = 0 pc ? pc + 2 + jdisp8 if p/v = 1 pc ? pc + 2 + jdisp8 if p/v = 0 pc ? pc + 2 + jdisp8 if s = 1 pc ? pc + 2 + jdisp8 if s = 0 pc ? pc + 3 + jdisp8 if (p/v s) M z = 0 pc ? pc + 3 + jdisp8 if p/v s= 0 pc ? pc + 3 + jdisp8 if p/v s = 1 pc ? pc + 3 + jdisp8 if (p/v s) M z = 1 pc ? pc + 3 + jdisp8 if z cy = 0 pc ? pc + 3 + jdisp8 if z cy = 1 pc ? pc + 3 + jdisp8 if (saddr.bit) = 1 pc ? pc + 4 + jdisp8 if sfr.bit = 1 pc ? pc + 3 + jdisp8 if a.bit = 1 pc ? pc + 3 + jdisp8 if x.bit = 1 pc ? pc + 3 + jdisp8 if psw h .bit = 1 pc ? pc + 3 + jdisp8 if psw l .bit = 1 pc ? pc + 4 + jdisp8 if (saddr.bit) = 0 pc ? pc + 4 + jdisp8 if sfr.bit = 0 pc ? pc + 3 + jdisp8 if a.bit = 0 pc ? pc + 3 + jdisp8 if x.bit = 0 pc ? pc + 3 + jdisp8 if psw h .bit = 0 pc ? pc + 3 + jdisp8 if psw l .bit = 0 flag s z ac p/v cy mnemonic operand byte operation instructions special unconditional branch conditional branch chkl chkla br bc bl bnc bnl bz be bnz bne bv bpe bnv bpo bn bp bgt bge blt ble bh bnh bt bf xx p xx p sfr 3 sfr 3 !addr16 3 rp1 2 [rp1] 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 2 $addr16 3 $addr16 3 $addr16 3 $addr16 3 $addr16 3 $addr16 3 saddr.bit, $addr16 3 sfr.bit, $addr16 4 a.bit, $addr16 3 x.bit, $addr16 3 pswh.bit, $addr16 3 pswl.bit, $addr16 3 saddr.bit, $addr16 4 sfr.bit, $addr16 4 a.bit, $addr16 3 x.bit, $addr16 3 pswh.bit, $addr16 3 pswl.bit, $addr16 3
62 m pd78361a, 78362a flag s z ac p/v cy mnemonic operand byte operation instructions btclr bfset dbnz brkcs retcs retcsb context switching conditional branch pc ? pc + 4 + jdisp8 if (saddr.bit) = 1 then reset (saddr.bit) pc ? pc + 4 + jdisp8 if sfr.bit = 1 then reset sfr.bit pc ? pc + 3 + jdisp8 if a.bit = 1 then reset a.bit pc ? pc + 3 + jdisp8 if x.bit = 1 then reset x.bit pc ? pc + 3 + jdisp8 if psw h .bit = 1 then reset psw h .bit pc ? pc + 3 + jdisp8 if psw l .bit = 1 then reset psw l .bit pc ? pc + 4 + jdisp8 if (saddr.bit) = 0 then set (saddr.bit) pc ? pc + 4 + jdisp8 if sfr.bit = 0 then set sfr.bit pc ? pc + 3 + jdisp8 if a.bit = 0 then set a.bit pc ? pc + 3 + jdisp8 if x.bit = 0 then set x.bit pc ? pc + 3 + jdisp8 if psw h .bit = 0 then set psw h .bit pc ? pc + 3 + jdisp8 if psw l .bit = 0 then set psw l .bit r2 ? r2 C 1, then pc ? pc + 2 + jdisp8 if 2 1 0 (saddr) ? (saddr) C 1, then pc ? pc + 3 + jdisp8 if (saddr) 1 0 pc h ? r5, pc l ? r4, r7 ? psw h , r6 ? psw l , ? rbs2 C 0 ? n, rss ? 0, ie ? 0 pc h ? r5, pc l ? r4, r5, r4 ? addr16 psw h ? r7, psw l ? r6 pc h ? r5, pc l ? r4, r5, r4 ? addr16 psw h ? r7, psw l ? r6 xxxxx xxxxx rrrrr rrrrr saddr.bit, $addr16 4 sfr.bit, $addr16 4 a.bit, $addr16 3 x.bit, $addr16 3 pswh.bit, $addr16 3 pswl.bit, $addr16 3 saddr.bit, $addr16 4 sfr.bit, $addr16 4 a.bit, $addr16 3 x.bit, $addr16 3 pswh.bit, $addr16 3 pswl.bit, $addr16 3 r2, $addr16 2 saddr, $addr16 3 rbn 2 !addr16 3 !addr16 4
63 m pd78361a, 78362a flag s z ac p/v cy mnemonic operand byte operation instructions [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 (de + ) ? a, c ? c C 1 end if c = 0 (de C ) ? a, c ? c C 1 end if c = 0 (de + ) ? (hl + ), c ? c C 1 end if c = 0 (de C ) ? (hl C ), c ? c C 1 end if c = 0 (de + ) ? a, c ? c C 1 end if c = 0 (de C ) ? a, c ? c C 1 end if c = 0 (de + ) ? (hl + ), c ? c C 1 end if c = 0 (de C ) ? (hl C ), c ? c C 1 end if c = 0 (de + ) C a, c ? c C 1 end if c = 0 or z = 0 (de C ) C a, c ? c C 1 end if c = 0 or z = 0 (de + ) C (hl + ), c ? c C 1 end if c = 0 or z = 0 (de C ) C (hl C ), c ? c C 1 end if c = 0 or z = 0 (de + ) C a, c ? c C 1 end if c = 0 or z = 1 (de C ) C a, c ? c C 1 end if c = 0 or z = 1 (de + ) C (hl + ), c ? c C 1 end if c = 0 or z = 1 (de C ) C (hl C ), c ? c C 1 end if c = 0 or z = 1 (de + ) C a, c ? c C 1 end if c = 0 or cy = 0 (de C ) C a, c ? c C 1 end if c = 0 or cy = 0 (de + ) C (hl + ), c ? c C 1 end if c = 0 or cy = 0 (de C ) C (hl C ), c ? c C 1 end if c = 0 or cy = 0 string movm movbk xchm xchbk cmpme cmpbke cmpmne cmpbkne cmpmc cmpbkc xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx xxxvx
64 m pd78361a, 78362a flag s z ac p/v cy mnemonic operand byte operation instructions (de + ) C a, c ? c C 1 end if c = 0 or cy = 1 (de C ) C a, c ? c C 1 end if c = 0 or cy = 1 (de + ) C (hl + ), c ? c C 1 end if c = 0 or cy = 1 (de C ) C (hl C ), c ? c C 1 end if c = 0 or cy = 1 stbc ? byte note wdm ? byte note rss ? rss rbs2 C 0 ? n, rss ? 0 rbs2 C 0 ? n, rss ? 1 no operation ie ? 1 (enable interruptt) ie ? 0 (disable interrupt) cmpmnc cmpbknc mov swrs sel nop ei di string cpu control [de + ], a 2 [de C ], a 2 [de + ], [hl + ] 2 [de C ], [hl C ] 2 stbc, #byte 4 wdm, #byte 4 1 rbn 2 rbn, alt 2 1 1 1 xxxvx xxxvx xxxvx xxxvx note if the op code of the stbc register and wdm register manipulation instructions is wrong, an op code trap interrupt occurs. operation on trap: (sp C 1) ? psw h , (sp C 2) ? psw l , (sp C 3) ? (pc C 4) h , (sp C 4) ? (pc C 4) l , pc l ? (003ch), pc h ? (003dh), sp ? sp C 4, ie ? 0
65 m pd78361a, 78362a 8. example of system configuration controlling outdoor apparatus of inverter air conditioner m pd78362a ani0 ani1 ani2 ani3 ani4 nmi intp1 r x d t x d p41 p40 p43 p42 p01 p00 p03 p02 u/d u v w w v u cm03 cm00 cm01 cm02 real-time pulse unit 16-bit timer dead time setting register inverter (analog signal) ac power supply monitor external temperature thermal exchange temperature outlet temperature inlet temperature dc monitor compressor motor temperature monitor 10-bit a/d converter programmable interrupt controller serial interface rom 24k bytes ram 768 bytes general- purpose port real-time output port 4-way valve 2-way valve outdoor fan motor stepping motor (electronic expansion valve) to00 to01 to02 to03 to04 to05 indoor apparatus controller pulse generation circuit
m pd78361a, 78362a 66 9. electrical specifications absolute maximum ratings (t a = 25 ?c) parameter symbol test conditions rating unit power supply voltage v dd C0.5 to +7.0 v av dd C0.5 to v dd + 0.5 v av ss C0.5 to +0.5 v input voltage v i pins other than C0.5 to v dd + 0.5 v p70/ani0-p77/ani7 output voltage v o C0.5 to v dd + 0.5 v low-level output current i ol note 20 ma output pins other than 4.0 ma those in the note total of all output pins 200 ma high-level output current i oh all output pins C3.0 ma total of all output pins C25 ma analog input voltage v ian p70/ani0-p77/ani7 pins av ss C 0.5 to av dd + 0.5 v a/d converter reference input voltage av ref av ss C 0.5 to av dd + 0.5 v operating ambient temperature t a C40 to +85 ?c storage temperature t stg C60 to +150 ?c note p00/rtp0-p03/rtp3, p04/pwm0, p05/tcud/pwm1, p06/tiud/to40, p07/tclrud, and p80/to00- p85/to05 pins. caution product quality may suffer if the absolute rating is exceeded for any parameter, even momentarily. in other words, an absolute maxumum rating is a value at which the possibility of psysical damage to the product cannnot be ruled out. care must therefore be taken to ensure that the these ratings are not exceeded during use of the product. recommended operating conditions oscillation frequency t a v dd 3 mhz f xx 8 mhz C40 to +85 ?c +5.0 v 10 % capacitance (t a = 25 ?c, v ss = v dd = 0 v) parameter symbol test conditions min. typ. max. unit input capacitance c i f = 1 mhz 20 pf output capacitance c o 0 v except measured pins 20 pf i/o capacitance c io 20 pf
m pd78361a, 78362a 67 oscillator characteristics (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v) resonator recommended circuit parameter min. max. unit ceramic resonator or oscillation frequency (f xx ) 3 8 mhz crystal resonator external clock x1 input frequency (f x ) 3 8 mhz x1 rise/fall time (t xr , t xf ) 0 30 ns x1 input high-/low-level 40 170 ns width (t wxh , t wxl ) caution when using system clock oscillation circuits, to reduce the effect of the wiring capacitouce, etc, wire the area indicated by dotted-line as follows: ? make the wiring as short as possible. ? do not allow the wiring to intersect other signal lines. keep it away from other lines in which varying high currents flow. ? make sure that the ground point of the oscillation circuit capacitor is always at the same electric potential as v ss . do not allow the wiring to be grounded to a ground pattern in which very high currents are flowing. ? do not extract signals from the oscillation circuit. v ss x2 x1 c1 c2 leave unconnected hcmos inverter x1 x2
m pd78361a, 78362a 68 dc characteristics (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v) parameter symbol test conditions min. typ. max. unit low-level input voltage v il1 note 1 0 0.8 v v il2 note 2 0 0.2v dd v high-level input voltage v ih1 note 1 2.2 v v ih2 note 2 0.8v dd v low-level output voltage v ol1 note 3 i ol = 2.0 ma 0.45 v v ol2 note 4 i ol = 15 ma 1.5 v v ol3 note 5 i ol = 10 ma 1.5 v high-level output voltage v oh i oh = C400 m a v dd C 1.0 v input leakage current i li 0 v v i v dd , av dd = v dd 10 m a output leakage current i lo 0 v v o v dd , av dd = v dd 10 m a v dd supply current i dd1 operating mode 70 120 ma i dd2 halt mode 45 70 ma data retention voltage v dddr stop mode 2.5 v data retention current i dddr stop mode v dddr = 2.5 v 2 10 m a v dddr = 5.0 v 10 % 10 50 m a pull-up resistance r l v i = 0 v 15 60 150 k w notes 1. pins other than those specified in note 2. 2. reset, x1, x2, p20/nmi, p21/intp0, p22/intp1, p23/intp2, p24/intp3/ti, p25/intp4, p32/ so/sb0, p33/si/sb1 and p34/sck pins. 3. pins other than those specified in notes 4 and 5. 4. p80/to00-p85/to05 pins (when i ol = 15 ma is in operation, up to three pins can be on simultaneously.) 5. p00/rtp0-p03/rtp3, p04/pwm0, p05/tcud/pwm1, p06/tiud/to40 and p07/tclrud pins (when i ol = 10 ma is in operation, up to four pins can be on simultaneously.) . caution when the p80-p85, and p00-p07 pins are not used under the conditions specified in notes 4 and 5, they have the same characteristics as in note 3.
m pd78361a, 78362a 69 ac characteristics (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v, c l = 100 pf, f xx = 8 mhz) system clock cycle parameter symbol test conditions min. max. unit system clock cycle time t cyk 62.5 166.7 ns serial operation (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v) parameter symbol test conditions min. max. unit serial clock cycle time t cysk sck output internal 8 dividing 500 ns sck input external clock 500 ns serial clock low-level t wskl sck output internal 8 dividing 210 ns width sck input external clock 210 ns serial clock high-level t wskh sck output internal 8 dividing 210 ns width sck input external clock 210 ns si setup time (vs. sck - ) t srxsk 80 ns si hold time (vs. sck - )t hskrx 80 ns sck ? so delay time t dsktx r = 1 k w , c = 100 pf 210 ns up/down counter operation (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v) parameter symbol test conditions min. max. unit tiud high-/low-level t wtiuh , t wtiul other than mode 4 2t ns width mode 4 4t ns tcud high-/low-level t wtcuh , t wtcul other than mode 4 2t ns width mode 4 4t ns tclrud high-/low-level width t wcluh , t wclul 2t ns tcud setup time (vs. tiud - ) t stcu mode 3 t ns tcud hold time (vs. tiud - ) t htcu mode 3 t ns tiud setup time (vs. tcud) t s4tiu mode 4 2t ns tiud hold time (vs. tcud) t h4tiu mode 4 2t ns tiud & tcud cycle time t cyc other than mode 4 4 mhz t cyc4 mode 4 2 mhz remark t = t cyk = 1/f clk (f clk refers to the internal system clock frequency.)
m pd78361a, 78362a 70 other operations (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = 0 v) parameter symbol test conditions min. max. unit nmi high-/low-level width t wnih , t wnil 2 m s reset high-/low-level width t wrsh , t wrsl 1.5 m s intp0 high-/low-level t wi0h , t wi0l ts = t 250 ns width ts = 4t 1.0 m s ts = 8t 2.0 m s ts = 16t 4.0 m s intp1 high-/low-level t wi1h , t wi1l ts = t 250 ns width ts = 4t 1.0 m s ts = 8t 2.0 m s ts = 16t 4.0 m s intp2 high-/low-level t wi2h , t wi2l ts = t 250 ns width ts = 4t 1.0 m s intp3(ti) high-/low- t wi3h , t wi3l ts = t 250 ns level width ts = 4t 1.0 m s ts = 8t 2.0 m s ts = 16t 4.0 m s ts = 64t 16.0 m s ts = 128t 32.0 m s ts = 256t 64.0 m s intp4 high-/low-level t wi4h , t wi4l ts = t 250 ns width ts = 4t 1.0 m s ts = 8t 2.0 m s ts = 16t 4.0 m s remarks 1. t = t cyk = 1/f clk (f clk refers to the internal system clock frequency.) 2. ts refers to the input sampling frequency. intp0-intp4 can be selected to programmable.
m pd78361a, 78362a 71 a/d converter characteristics (t a = C40 to +85 ?c, v dd = +5 v 10 %, v ss = av ss = 0 v, v dd C 0.5 v av dd v dd ) parameter symbol test conditions min. typ. max. unit resolution 10 bit total error note 1 4.5 v av ref av dd 0.4 %fsr 3.4 v av ref av dd 0.7 %fsr quantization error 1/2 lsb conversion time t conv 62.5 ns t cyk < 80 ns 208 t cyk 80 ns t cyk 166.6 ns 169 t cyk sampling time t samp 62.5 ns t cyk < 80 ns 24 t cyk 80 ns t cyk 166.6 ns 20 t cyk zero-scale error note 1 4.5 v av ref av dd 1.5 2.5 lsb 3.4 v av ref av dd 1.5 4.5 lsb full-scale error note 1 4.5 v av ref av dd 1.5 2.5 lsb 3.4 v av ref av dd 1.5 4.5 lsb nonlinearity error note 1 4.5 v av ref av dd 1.5 2.5 lsb 3.4 v av ref av dd 1.5 4.5 lsb analog input voltage note 2 v ian C0.3 av ref + 0.3 v analog input impedance r an when not sampling 10 m w when sampling note 3 reference voltage av ref 3.4 av dd v av ref current ai ref 1.0 3.0 ma av dd supply current ai dd operating mode 2.0 6.0 ma a/d converter data ai dddr stop mode av dddr = 2.5 v 2 10 m a retention current av dddr = 5 v 10 % 10 50 m a notes 1. the quantization error is excluded. 2. when C0.3 v v ian 0 v, the conversion result becomes 000h. when 0 v < v ian < av ref , the conversion is performed with the 10-bit resolution. when av ref v ian +0.3 v, the conversion result becomes 3ffh. 3. the analog input impedance at the time of sampling is the same as the equivalent circuit shown below. (the values in the diagram are typ. values; they are not guaranteed values) analog input pin 1 k w 25 pf (input capacitance included) 4 pf
m pd78361a, 78362a 72 cautions1. when using the p70/ani0-p77/ani7 pins for both digital and analog inputs, the previ- ously described characteristics are not guaranteed. therefore, ensure that all of the eight p70/ani0-p77/ani7 pins are used either for analog input or digital input. 2. when using the p70/ani0-p77/ani7 pins as digital input, make sure to set that av dd = v dd , and av ss = v ss . ac timing test point 0.8 v dd or 2.2 v 0.2 v dd or 0.8 v 0.8 v dd or 2.2 v 0.2 v dd or 0.8 v v dd 0 v test point
m pd78361a, 78362a 73 serial operation t cysk t wskl t wskh t dsktx t srxsk t hskrx sck so si up/down counter (timer 4) input timing t wtiuh t stcu t htcu t wtiul t wtcul t wtcuh tiud tcud t wcluh t wclul tclrud tiud tcud t s4tiu t h4tiu t s4tiu t h4tiu
m pd78361a, 78362a 74 interrupt input timing t wnih t wnil 0.8 v dd 0.2 v dd nmi t winh t winl intpn 0.8 v dd 0.2 v dd remark n = 0 C 4 reset input timing t wrsh t wrsl 0.8 v dd 0.2 v dd reset
m pd78361a, 78362a 75 10. package drawing a i j g h f d n m c b m r 64 33 32 1 k l note each lead centerline is located within 0.17 mm (0.007 inch) of its true position (t.p.) at maximum material condition. p64c-70-750a,c-1 item millimeters inches a b c d f g h i j k 58.68 max. 1.778 (t.p.) 3.2?.3 0.51 min. 4.31 max. 1.78 max. l m 0.17 0.25 19.05 (t.p.) 5.08 max. 17.0 n 0~15 0.50?.10 0.9 min. r 2.311 max. 0.070 max. 0.020 0.035 min. 0.126?.012 0.020 min. 0.170 max. 0.200 max. 0.750 (t.p.) 0.669 0.010 0.007 0~15 +0.004 ?.003 0.070 (t.p.) 1) item "k" to center of leads when formed parallel. 2) +0.10 ?.05 +0.004 ?.005 64 pin plastic shrink dip (750 mil)
m pd78361a, 78362a 76 11. recommended soldering conditions these products should be soldered and mounted under the conditions recommended below. for details of recommended soldering conditions, refer to the information document semiconductor device mounting technology manual (c10535e) . for soldering methods and conditions other than those recommended, please contact your nec sales representative. table 11-1. insertion type soldering conditions m pd78361acw- : 64-pin plastic shrink dip (750 mil) m pd78362acw- : 64-pin plastic shrink-dip (750 mil) soldering method wave soldering (pin only) partial heating caution wave soldering is only for the pins in order that jet solder cannot contact with the chip directly. soldering conditions solder bath temperature: 260 ?c or less, time: 10 sec. max., pin temperature: 300 ?c or less, time: 3 sec. max. (per pin)
77 m pd78361a, 78362a appendix a. differences between m pd78362a and m pd78328 product name item 125 ns internal clock : 8 mhz, external clock : 16 mhz 250 ns minimum instruction execution time internal memory rom ram m pd78362a m pd78328 24k bytes 16k bytes 768 bytes 512 bytes 8 bits 16 8 banks 115 111 ? 16-bit transfer/operation ? multiplication/division (16 bits x 16 bits, 32 bits ? 16 bits) ? bit manipulation ? string general-purpose registers number of basic instructions instruction set internal clock : 16 mhz external clock : 8 mhz 11 (of which 8 are multiplexed with analog input) 41 ? 16-bit timer 3 ? 16-bit compare register 14 ? 16-bit capture/compare register 1 ? two output modes selectable mode 0, set-reset output : 6 channels toggle output : 1 channel mode 1, buffer output : 8 channels 4/8 (buffer output in 4-/8-bit units) 8-bit resolution pwm output: 1 channel ? sum-of-products operation (16 bits 16 bits + 32 bits) ? relative operation 14 (of which 8 are multiplexed with analog input) 38 ? 16-bit timer 5 ? 16-bit compare register 7 ? 16-bit capture register 3 ? 16-bit capture/compare register 2 ? two output modes selectable mode 0, set-reset output : 6 channels mode 1, buffer output : 6 channels ? 16-bit resolution pwm output: 1 channel 4 (buffer output in 4-bit units) 8-/9-/10-/12-bit resolution variable pwm output: 2 channels 10-bit resolution, 8 channels dedicated baud rate generator uart : 1 channel clocked serial interface/sbi : 1 channel ? external: 6, internal: 14 (2 multiplexed with external) ? 4 programmable priority levels real-time pulse unit real-time output port pwm unit a/d converter serial interface interrupt function test source external expansion function pll control circuit package others input i/o ? three service selectable (vectored interrupt/macro service/context switching) i/o lines none internal: 1 none provided provided (external 8 mhz ? internal: 16 mhz) none ? external: 4, internal: 17 ? 3 programmable priority levels ? 64-pin plastic shrink dip (750 mil) ? 64-pin plastic shrink dip ? 64-pin plastic qfp (14 20 mm) ? watchdog timer ? standby functions (halt mode, stop mode)
78 m pd78361a, 78362a host machine order code (product name) pc-9800 series ms-dos ibm pc/at and its pc dos compatible model hp9000 series 700 hp-ux sparc station sunos news news-os host machine order code (product name) pc-9800 series ms-dos tm ibm pc/at tm and its pc dos tm compatible model hp9000 series 700 tm hp-ux tm sparcstation tm sunos tm news tm news-os tm appendix b. tools b.1 development tools the following development tools are available to support development of m pd78362a program: language processor os supply media 3.5" 2hd m s5a13ra78k3 5" 2hd m s5a10ra78k3 3.5" 2hc m s7b13ra78k3 5" 2hc m s7b10ra78k3 dat m s3p16ra78k3 cartridge tape m s3k15ra78k3 (qic-24) m s3r15ra78k3 a relocatable assembler, that can be used commonly for the 78k/iii series products. since this assembler is provided with macro functions, it enhances the developmnt efficency. a structured assembler, that can explicitly describe the program control structure, is also supplied, so that the program productivity and maintainability can be improved. 78k/iii series relocatable assembler (ra78k3) this is a c compiler that can be commonly used for 78k/iii series. this program converts the program written in c language to object codes microcontroller can execute. when using this compiler, the 78k3 series relocatable assembler (ra78k/iii) is necessary. os supply media 3.5" 2hd m s5a13cc78k3 5" 2hd m s5a10cc78k3 3.5" 2hc m s7b13cc78k3 5" 2hc m s7b10cc78k3 dat m s3p16cc78k3 cartridge tape m s3k15cc78k3 (qic-24) m s3r15cc78k3 remark the operations of the relocatable assembler and c compiler are guaranteed only on the specified host machine and os described above. 78k/iii series c compiler (cc78k3)
79 m pd78361a, 78362a host machine order code (part number) pc-9800 series ms-dos ibm pc/at and pc dos compatible machines prom writing tools this is a prom programmer that can program prom-contained single-chip microcontrollers in standalone mode or under control of a host machine when the accessory board and an optional programmer adapter are connected. it can also program representative proms from 256k-bit to 4m-bit models. prom programmer adapters that writes a program to the m pd78p364a on a general-purpose prom programmer such as the pg-1500. pa-78p364cw : for m pd78p364acw connects the pg-1500 and a host machine with a serial intrface and a parallel interface to control the pg-1500 from the host machine. pg-1500 pa-78p364cw pg-1500 controller host machine order code (part number) pc-9800 series ms-dos ibm pc/at and pc dos compatible machines remark the operation of the pg-1500 controller is guaranteed only on the above host machine and os. debugging tools (when ie controller is used) hardware software in-circuit emulator that can be used to develop and debug application systems. connected to a host machine for debugging. i/o emulation board that emulates the peripheral functions of the target device such as i/o ports. emulation prove that connects the ie-78350-r to the target system. program that controls the ie-78350-r on the host machine. it can automatically execute commands, enhancing debugging efficiency. ie-78350-r ie-78365-r-em1 ep-78327cw-r ie-78350-r control program (ie controller) software hardware remark the operation of the ie controller is guaranteed only on the above host machine and os. os supply media 3.5" 2hd m s5a13ie78365a 5" 2hd m s5a10ie78365a 3.5" 2hc m s7b13ie78365a 5" 2hc m s7b10ie78365a os supply media 3.5" 2hd m s5a13pg1500 5" 2hd m s5a10pg1500 3.5" 2hd m s7b13pg1500 5" 2hc m s7b10pg1500
80 m pd78361a, 78362a development tool configuration (when using ie controller) note use the socket available on the market. remarks 1. host machine and pg-1500 can be directly connected by rs-232-c. 2. 3.5-inch fd represents the supply media of software in this figure. host machine pc-9800 series ibm pc series ews software relocatable assembler ie controller c compiler pg-1500 controller built-in prom models + + programmer adapter pg-1500 rs-232-c rs-232-c prom programmer ie-78350-r in-circuit emulator ie-78365-r-em1 i/o emulation board (optional) + emulation prove conversion socket for connecting the emulation prove and the target system note target system pd78p364acw pa-78p364cw ep-78327cw-r socket for sdip m
81 m pd78361a, 78362a ie-784000-r ie-78350-r-em-a ie-78365-r-em1 ep-78327cw-r ie-70000-98-if-b ie-70000-98n-if ie-70000-pc-if-b ie-78000-r-sv3 integrated debugger (id78k3) device file (df78365) debugging tools (when integrated debugger is used) hardware in-circuit emulation that can be used to develop and debug the application system. connected to a host machine for debugging. emulation board that emulates the peripheral functions of the target device such as i/o ports. i/o emulation board that emulates the peripheral functions of the target device such as i/o ports. emulation probe connecting the ie-784000-r to the target system. interface adapter to connect pc-9800 series (except notebook type personal computer) as the host machine. interface adapter and cable to connect pc-9800 series notebook type personal computer as the host machine. interface adapter to connect ibm pc as the host machine. interface adapter and cable to connect ews as the host machine. program controlling the in-circuit emulator for the 78k/iii series. used in combination with a device file (df78365). can debug a program coded in the c language, structured assembly language, or assembly language at source program level. can also split the screen of the host machine into windows on each of which information is displayed, enhancing debugging efficiency. host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m saa13id78k3 windows tm 5" 2hd m saa10id78k3 ibm pc/at and compatible pc dos 3.5" 2hc m sab13id78k3 machines ( japanese windows ) windows 5" 2hc m sab10id78k3 ibm pc/at and compatible 3.5" 2hc m sbb13id78k3 machines ( english windows ) 5" 2hc m sbb10id78k3 file containing information peculiar to device. use in combination with an assembler (ra78k3), c compiler (cc78k3), and integrated debugger (id78k3). host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m s5a13df78365 5" 2hd m s5a10df78365 ibm pc/at and compatible pc dos 3.5" 2hc m s7b13df78365 machines 5" 2hc m s7b10df78365 + + software remark the operation of the integrated debugger and device file is guaranteed only on the above host machine and os.
82 m pd78361a, 78362a development tool configuration (when using integrated debugger) note use the socket available on the market. remarks 1. desk top-type pc represents host machine in this figure. 2. 3.5-inch fd represents the supply media of software in this figure. host machine pc-9800 series ibm pc/at ews ie-70000-98-if-b ie-70000-98n-if ie-70000-pc-if-b software relocatable assembler integrated debugger device file c compiler pg-1500 controller built-in prom models + + programmer adapter rs-232-c prom programmer pg-1500 ie-784000-r in-circuit emulator ie-78350-r-em-a emulation board (optional) ie-78365-r-em1 i/o emulation board (optional) + + emulation prove conversion socket for connecting the emulation prove and the target system note target system pd78p364acw pa-78p364cw ep-78327cw-r socket for sdip m
83 m pd78361a, 78362a b.2 embedded software the following embedded software is available for enhancing the efficiency of program development and maintenance. real-time os real-time os (rx78k/iii) note rx78k/iii is intended to implement a multi-tasking environment for use in the control field where real-time capability is a must. it can allocate the idle time of the cpu to other processing to improve the overall performance of the system. rx78k/iii provides system calls conforming to the m itron specification. the rx78k/iii package supplies a tool (configurator) to create the nucleus of rx78k/iii and multiple information tables. host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd pending 5" 2hd pending ibm pc/at and compatible pc dos 3.5" 2hc pending machines 5" 2hc pending note under development caution before purchasing this product, you are requested to conclude a contract licensing use by filling out a specified form. remark when using the rx78k/iii real-time os, the ra78k3 assembler package (optional) is necessary.
84 m pd78361a, 78362a fuzzy inference development support system fuzzy knowledge data creation tool (fe9000, fe9200) translator (ft78k3) note fuzzy inference module (fi78k3) note fuzzy inference debugger (fd78k3) program that supports input/editing and evaluation (simulation) of fuzzy knowledge (fuzzy rules and membership functions). host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m s5a13fe9000 5" 2hd m s5a10fe9000 ibm pc/at and compatible pc dos 3.5" 2hc m s7b13fe9200 machines windows 5" 2hc m s7b10fe9200 program that converts the fuzzy knowledge data obtained by using the fuzzy knowledge data creation tool into assembler source program for the ra78k3. host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m s5a13ft78k3 5" 2hd m s5a10ft78k3 ibm pc/at and compatible pc dos 3.5" 2hc m s7b13ft78k3 machines 5" 2hc m s7b10ft78k3 program that executes fuzzy inference when linked with the fuzzy knowledge data converted by the translator. host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m s5a13fi78k3 5" 2hd m s5a10fi78k3 ibm pc/at and compatible pc dos 3.5" 2hc m s7b13fi78k3 machines 5" 2hc m s7b10fi78k3 support software that evaluates and adjusts the fuzzy knowledge data at the hardware level by using an in-circuit emulator. host machine order code (part number) os supply media pc-9800 series ms-dos 3.5" 2hd m s5a13fd78k3 5" 2hd m s5a10fd78k3 ibm pc/at and compatible pc dos 3.5" 2hc m s7b13fd78k3 machines 5" 2hc m s7b10fd78k3 + note under development
85 m pd78361a, 78362a [memo]
86 m pd78361a, 78362a notes for cmos devices 1 precaution against esd for semiconductors note: strong electric field, when exposed to a mos device, can cause destruction of the gate oxide and ultimately degrade the device operation. steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. environmental control must be adequate. when it is dry, humidifier should be used. it is recommended to avoid using insulators that easily build static electricity. semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. all test and measurement tools including work bench and floor should be grounded. the operator should be grounded using wrist strap. semiconductor devices must not be touched with bare hands. similar precautions need to be taken for pw boards with semiconductor devices on it. 2 handling of unused input pins for cmos note: no connection for cmos device inputs can be cause of malfunction. if no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. cmos device behave differently than bipolar or nmos devices. input levels of cmos devices must be fixed high or low by using a pull-up or pull-down circuitry. each unused pin should be connected to v dd or gnd with a resistor, if it is considered to have a possibility of being an output pin. all handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 status before initialization of mos devices note: power-on does not necessarily define initial status of mos device. produc- tion process of mos does not define the initial operation status of the device. immediately after the power source is turned on, the devices with reset function have not yet been initialized. hence, power-on does not guarantee out-pin levels, i/o settings or contents of registers. device is not initialized until the reset signal is received. reset operation must be executed imme- diately after power-on for devices having reset function.
87 m pd78361a, 78362a nec electronics inc. (u.s.) santa clara, california tel: 800-366-9782 fax: 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.1. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore 1130 tel: 253-8311 fax: 250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-719-2377 fax: 02-719-5951 nec do brasil s.a. sao paulo-sp, brasil tel: 011-889-1680 fax: 011-889-1689 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. spain office madrid, spain tel: 01-504-2787 fax: 01-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 regional information some information contained in this document may vary from country to country. before using any nec product in your application, please contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. j96. 8
88 m pd78361a, 78362a ms-dos and windows are either registered trademarks or trademarks of microsoft corporation in the united states and/or other countries. pc/at and pc dos are trademarks of ibm corporation. hp9000 series 700 and hp-ux are trademarks of hewlett-packard company. sparcstation is a trademark of sparc international, inc. sunos is a trademark of sun microsystems, inc. news and news-os are trademark of sony corporation. tron is an abbreviation of the realtime operating system nucleus. itron is an abbreviation of industrial tron. the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative. no part of this document may be copied or reproduced in any form or by any means without the prior written consent of nec corporation. nec corporation assumes no responsibility for any errors which may appear in this document. nec corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. no license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec corporation or others. while nec corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. to minimize risks of damage or injury to persons or property arising from a defect in an nec semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. nec devices are classified into the following three quality grades: "standard", "special", and "specific". the specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. the recommended applications of a device depend on its quality grade, as indicated below. customers must check the quality grade of each device before using it in a particular application. standard: computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots special: transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) specific: aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. the quality grade of nec devices is "standard" unless otherwise specified in nec's data sheets or data books. if customers intend to use nec devices for applications other than those specified for standard quality grade, they should contact an nec sales representative in advance. anti-radioactive design is not implemented in this product. m4 96.5


▲Up To Search▲   

 
Price & Availability of UPD78361ACW-XXX

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X